toHandler
fun <C> toHandler(dispatcherContext: CoroutineContext = Dispatchers.IO, handler: JBlockingSuspendApplicationEventHandler<C>): SuspendApplicationEventHandler<C>(source)
Converts a JBlockingSuspendApplicationEventHandler to a SuspendApplicationEventHandler.
Return
The converted SuspendApplicationEventHandler.
Parameters
dispatcherContext
The coroutine context to use for executing the handler's suspend functions. Defaults to Dispatchers.IO.
handler
The JBlockingSuspendApplicationEventHandler to convert.