toListener

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

Converts a JBlockEventListener to an EventListener.

Return

The converted EventListener.

Parameters

dispatcherContext

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.