BlockingIntChain

interface BlockingIntChain : BlockingBufferChain<Int>

Performance optimized chain for integer values

Functions

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

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

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

Generate next value, changing state if needed

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

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<Int>
Link copied to clipboard
abstract override fun nextBufferBlocking(size: Int): IntBuffer

Sources

Link copied to clipboard