vertx / io.vertx.ext.unit / TestContext / async

# async

`abstract fun async(): Async`

Create and returns a new async object, the returned async controls the completion of the test. Calling the `Async#complete()` completes the async operation. The test case will complete when all the async objects have their `io.vertx.ext.unit.Async#complete()` method called at least once. This method shall be used for creating asynchronous exit points for the executed test.

Return
the async instance

`abstract fun async(count: Int): Async`

Create and returns a new async object, the returned async controls the completion of the test. This async operation completes when the `Async#complete()` is called `count` times. The test case will complete when all the async objects have their `io.vertx.ext.unit.Async#complete()` method called at least once. This method shall be used for creating asynchronous exit points for the executed test.

Return
the async instance