Class: Async

vertx-unit-js/async~ Async

new Async()

An asynchronous exit point for a test.

Source:

Methods

complete()

Signals the asynchronous operation is done, this method must be called with a count greater than 0, otherwise it throws an IllegalStateException to signal the error.
Source:

count() → {number}

Source:
Returns:
the current count
Type
number

countDown()

Count down the async.
Source:

handler(completionHandler)

Completion handler to receive a completion signal when this completions completes.
Parameters:
Name Type Description
completionHandler function the completion handler
Source:

resolve(future)

Completes the future upon completion, otherwise fails it.
Parameters:
Name Type Description
future Promise the future to resolve
Source: