handledBy

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

Connects a Flow to a Handler.

Receiver

Flow of action/events to bind to an Handler

Parameters

handler

Handler that will be called for each action/event on the Flow


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 an Handler

Parameters

execute

function that will be called for each action/event on the Flow