BlockingDoubleChain

interface BlockingDoubleChain : BlockingBufferChain<Double>

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

Types

Companion
Link copied to clipboard
common
object Companion

Functions

collect
Link copied to clipboard
common
open suspend override fun collect(collector: FlowCollector<Double>)
fork
Link copied to clipboard
common
abstract suspend override fun fork(): BlockingDoubleChain
Create a copy of current chain state.
next
Link copied to clipboard
common
open suspend override fun next(): Double
Generate next value, changing state if needed
nextBlocking
Link copied to clipboard
common
open override fun nextBlocking(): Double
Get the next value without concurrency support.
nextBuffer
Link copied to clipboard
common
open suspend override fun nextBuffer(size: Int): Buffer<Double>
nextBufferBlocking
Link copied to clipboard
common
abstract override fun nextBufferBlocking(size: Int): DoubleBuffer
Returns an DoubleArray chunk of size values of next.

Extensions

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