BlockingDoubleChain

interface BlockingDoubleChain : BlockingBufferChain<Double>

Chunked, specialized chain for double values, which supports blocking nextBlocking operation

Types

Link copied to clipboard
object Companion

Functions

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

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

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

Generate next value, changing state if needed

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

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

Returns an DoubleArray chunk of size values of next.

Extensions

Link copied to clipboard
fun BlockingDoubleChain.map(transform: (Double) -> Double): BlockingDoubleChain

Sources

Link copied to clipboard