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