handledBy

open infix fun <A> Flow<A>.handledBy(handler: Handler<A>)

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


open infix fun <A> Flow<A>.handledBy(execute: suspend (A) -> Unit): Job

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


open infix fun <E : Event> Flow<E>.handledBy(handler: Handler<Unit>)

Connects Events to a Handler.

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

Connects a Flow to a suspendable execute function.

Receiver

Flow which contains the Event

Parameters

execute

function that will handle the fired Event