Package io.vertx.ext.unit

## Interface Async

- All Superinterfaces:
    `Completion<Void>`

      public interface Async
      extends Completion<Void>

  An asynchronous exit point for a test.

  Author:
    Julien Viet

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `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.
    `int` | `count()` |
    `void` | `countDown()` | Count down the async.

    - ### Methods inherited from interface io.vertx.ext.unit.Completion

      `await, await, awaitSuccess, awaitSuccess, handler, isCompleted, isFailed, isSucceeded, resolve`

- - ### Method Detail

    - #### 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.