vertx / io.vertx.ext.sync / Receiver / receive

# receive

`@Suspendable abstract fun receive(): T`

Return an event when one is available. This method will block the fiber until one is available. No kernel thread is blocked.

Return
the event

`@Suspendable abstract fun receive(timeout: Long): T`

Return an event when one is available. This method will block the fiber until one is available, or timeout occurs. No kernel thread is blocked.

### Parameters

`timeout` - the max amount of time in ms to wait for an event to be available

Return
the event