Behavior Subject
@FlowPreview()
Content copied to clipboard
Caches one item and replays it to fresh collectors.
Constructors
BehaviorSubject
Link copied to clipboard
fun BehaviorSubject()
Content copied to clipboard
Constructs an empty BehaviorSubject.
BehaviorSubject
Link copied to clipboard
Constructs a BehaviorSubject with an initial value to emit to collectors.
Functions
collectorCount
Link copied to clipboard
collectSafely
Link copied to clipboard
Accepts a collector and emits the latest (if available) value and any subsequent value received by this BehaviorSubject until the BehaviorSubject gets terminated.
hasCollectors
Link copied to clipboard