invoke

inline suspend operator fun <T> FlowCollector<T>.invoke(value: T)(source)

Operator function that allows a FlowCollector to be invoked like a function to emit a value. This is a convenient syntax sugar for FlowCollector.emit.

Parameters

value

The value to emit

Type Parameters

T

The type of values the collector can emit