vertx / io.vertx.ext.unit / Completion / await

await

abstract fun await(): Unit

Cause the current thread to wait until this completion completes. If the current thread is interrupted, an exception will be thrown.

abstract fun await(timeoutMillis: Long): Unit

Cause the current thread to wait until this completion completes with a configurable timeout. If completion times out or the current thread is interrupted, an exception will be thrown.

Parameters

timeoutMillis - the timeout in milliseconds