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

await

open fun await(): Unit

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

open 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