interface Async : Completion<Void>
An asynchronous exit point for a test.
Author
Julien Viet
abstract fun complete(): Unit
Signals the asynchronous operation is done, this method must be called with a count greater than |
|
abstract fun count(): Int |
|
abstract fun countDown(): Unit
Count down the async. |
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. 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 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. 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 isCompleted(): Boolean |
|
abstract fun isFailed(): Boolean |
|
abstract fun isSucceeded(): Boolean |