class EventSelectBuilder<E : Any, R : Any>The receiver for lambdas passed to EventChannel.select. For usage see the documentation for EventChannel.
onEvent |
Selects an event by type fun <T : E> onEvent(handler: (T) -> R): Unit |
onSuccess |
Defines a case that is selected when fun <T : Any> |
onWorkerResult |
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 <I : Any, O : Any> WorkflowPool.onWorkerResult(worker: Worker<I, O>, input: I, name: String = "", handler: (O) -> R): Unit |
onWorkflowUpdate |
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. fun <S : Any, E : Any, O : Any> WorkflowPool.onWorkflowUpdate(handle: Handle<S, E, O>, handler: (WorkflowUpdate<S, E, O>) -> R): Unit |