vertx / io.vertx.reactivex.ext.unit / TestContext / strictAsync

strictAsync

open fun strictAsync(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 io.vertx.reactivex.ext.unit.Async#countDown is called count times. If io.vertx.reactivex.ext.unit.Async#countDown is called more than count times, an java.lang.IllegalStateException is thrown. The test case will complete when all the async objects have their io.vertx.reactivex.ext.unit.Async#complete method called at least once. This method shall be used for creating asynchronous exit points for the executed test.

Parameters

count -

Return
the async instance