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
constructor(value: T)

Properties

Link copied to clipboard
Link copied to clipboard
val Flow<MessageEvent>.blob: Flow<Blob>

gives the MessageEvent.data as Flow of Blob

Link copied to clipboard
val Flow<MessageEvent>.body: Flow<String>

gives the MessageEvent.data as Flow of String

Link copied to clipboard
val Flow<MessageEvent>.data: Flow<Any?>

gives the MessageEvent.data as Flow of Any

Link copied to clipboard
val <M : ValidationMessage> Flow<List<M>>.valid: Flow<Boolean>

Checks if a Flow of a List of ValidationMessages is valid.

Functions

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