Interface Async
- All Superinterfaces:
Completion<Void>
An asynchronous exit point for a test.
- Author:
- Julien Viet
-
Method Summary
Methods inherited from interface Completion
await, await, awaitSuccess, awaitSuccess, handler, isCompleted, isFailed, isSucceeded, resolve
-
Method Details
-
count
int count()- Returns:
- the current count
-
countDown
void countDown()Count down the async.- Throws:
IllegalStateException- in strict mode if invoked more than the initial count
-
complete
void complete()Signals the asynchronous operation is done, this method must be called with a count greater than0, otherwise it throws anIllegalStateExceptionto signal the error.
-