vertx / io.vertx.reactivex.ext.unit / Completion / awaitSuccess

# awaitSuccess

`open 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.

`open 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.

### Parameters

`timeoutMillis` - the timeout in milliseconds