vertx / io.vertx.ext.sync / Sync / fiberHandler

fiberHandler

@Suspendable open static fun <T : Any> fiberHandler(handler: Handler<T>): Handler<T>

Convert a standard handler to a handler which runs on a fiber. This is necessary if you want to do fiber blocking synchronous operations in your handler.

Parameters

handler - the standard handler

- the event type of the handler

Return
a wrapped handler that runs the handler on a fiber