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

strictAsync

abstract 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 Async#countDown() is called count times. If Async#countDown() is called more than count times, an IllegalStateException is thrown. 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