TriggerBuffer

internal class TriggerBuffer<T>(trigger: <Error class: unknown class><Boolean>, scope: <Error class: unknown class>)

A buffer that will collect items and emit list of all items buffered since last emitted list only when trigger emits true.

Constructors

Link copied to clipboard
constructor(trigger: <Error class: unknown class><Boolean>, scope: <Error class: unknown class>)

Functions

Link copied to clipboard
suspend fun add(value: T): <Error class: unknown class>
Link copied to clipboard
fun observe(): <Error class: unknown class><List<T>>