vertx / io.vertx.junit5 / VertxTestContext / awaitCompletion

# awaitCompletion

`fun awaitCompletion(timeout: Long, unit: TimeUnit): Boolean`

Wait for the completion of the test context.

This method is automatically called by the VertxExtension when using parameter injection of VertxTestContext. You should only call it when you instantiate this class manually.

### Parameters

`timeout` - the timeout.

`unit` - the timeout unit.

### Exceptions

`InterruptedException` - when the thread has been interrupted.

Return
`true` if the completion or failure happens before the timeout has been reached, `false` otherwise.