handled By
Connects a Flow to a Handler.
Receiver
Flow of action/events to bind to a Handler
Parameters
handler
Handler that will be called for each action/event on the Flow
Connects a Flow to a suspendable execute function.
Receiver
Flow of action/events to bind to
Parameters
execute
function that will be called for each action/event on the Flow
Receiver
Flow which contains the Event
Parameters
handler
that will handle the fired Event
open infix fun <E : Event> Flow<E>.handledBy(execute: suspend (E) -> Unit): Job
Content copied to clipboard
Connects a Flow to a suspendable execute function.
Receiver
Flow which contains the Event
Parameters
execute
function that will handle the fired Event