class EventSelectBuilder<E : Any, R : Any>The receiver for lambdas passed to EventChannel.select. For usage see the documentation for EventChannel.
fun <T : E> onEvent(handler: (T) -> R): Unit
Selects an event by type |
|
fun <T : Any>
Defines a case that is selected when |
|
fun <I : Any, O : Any> WorkflowPool.onWorkerResult(worker: Worker<I, O>, input: I, name: String = "", handler: (O) -> R): Unit
Selected when the given worker produces its result. If worker wasn't already running, it is started the given input. The caller must ensure that the result is consumed, or else call WorkflowPool.abandonWorker. |
|
fun <S : Any, E : Any, O : Any> WorkflowPool.onWorkflowUpdate(handle: Handle<S, E, O>, handler: (WorkflowUpdate<S, E, O>) -> R): Unit
Starts the Workflow described by handle if it wasn't already running. This case is selected when the Workflow's state changes from the given, or the Workflow completes. |