OnlyOnceFlow

class OnlyOnceFlow<T>(value: T) : Flow<T>

This Flow implementation represents a flow that emits exactly one value during its lifetime.

Parameters

value

the value to emit on the flow

Constructors

Link copied to clipboard
fun <T> OnlyOnceFlow(value: T)

Functions

Link copied to clipboard
open suspend override fun collect(collector: FlowCollector<T>)