toListener

fun toListener(dispatcherContext: CoroutineContext = Dispatchers.IO, listener: JBlockingEventListener): EventListener

Converts a JBlockingEventListener to an EventListener.

Return

The converted EventListener.

Parameters

dispatcherContext

The coroutine context to be used for dispatching events. Default value is Dispatchers.IO.

listener

The JBlockingEventListener to be converted.