Sink

fun interface Sink<T>

A sink, where values such as Metrics can be dumped by code such as the one used by the pro.respawn.flowmvi.metrics.dsl.metricsReporter plugin

Sinks can be composed and decorated to allow Metrics to be emitted to consumers.

See predefined Sinks such as

Inheritors

Functions

Link copied to clipboard
abstract suspend fun emit(value: T)

Emits a value downstream. If this method throws, the exception should be propagated to the consumer.