vertx / io.vertx.ext.unit / Async

Async

interface Async : Completion<Void>

An asynchronous exit point for a test.

Author
Julien Viet

Functions

complete

abstract fun complete(): Unit

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.

count

abstract fun count(): Int

countDown

abstract fun countDown(): Unit

Count down the async.

Inherited Functions

await

abstract fun await(): Unit

Cause the current thread to wait until this completion completes. If the current thread is interrupted, an exception will be thrown.

abstract fun await(timeoutMillis: Long): Unit

Cause the current thread to wait until this completion completes with a configurable timeout. If completion times out or the current thread is interrupted, an exception will be thrown.

awaitSuccess

abstract fun awaitSuccess(timeoutMillis: Long): Unit

Cause the current thread to wait until this completion completes and succeeds with a configurable timeout. If completion times out or the current thread is interrupted or the suite fails, an exception will be thrown.

abstract fun awaitSuccess(): Unit

Cause the current thread to wait until this completion completes and succeeds. If the current thread is interrupted or the suite fails, an exception will be thrown.

isCompleted

abstract fun isCompleted(): Boolean

isFailed

abstract fun isFailed(): Boolean

isSucceeded

abstract fun isSucceeded(): Boolean