BlockingBufferChain

interface BlockingBufferChain<out T> : BlockingChain<T> , BufferChain<T>

Functions

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

Create a copy of current chain state. Consuming resulting chain does not affect initial chain.

Link copied to clipboard
open suspend override fun next(): T

Generate next value, changing state if needed

Link copied to clipboard
open override fun nextBlocking(): T

Get the next value without concurrency support. Not guaranteed to be thread safe.

Link copied to clipboard
open suspend override fun nextBuffer(size: Int): Buffer<T>
Link copied to clipboard
abstract fun nextBufferBlocking(size: Int): Buffer<T>

Inheritors

Link copied to clipboard
Link copied to clipboard

Sources

Link copied to clipboard