to Listener
fun toListener(dispatcherContext: CoroutineContext = Dispatchers.IO, listener: JBlockingEventListener): EventListener
Converts a JBlockingEventListener to an EventListener.
Return
The converted EventListener.
Parameters
dispatcher Context
The coroutine context to be used for dispatching events. Default value is Dispatchers.IO.
listener
The JBlockingEventListener to be converted.