Interface Async

All Superinterfaces:
Completion<Void>

public interface Async extends Completion<Void>
An asynchronous exit point for a test.

Author:
Julien Viet
  • 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 than 0, otherwise it throws an IllegalStateException to signal the error.