Sequence BlockAllStream

std/flow/f64::BlockAllStream


Inputs

stream: Stream<f64>

Outputs

↦ block: Block<Vec<f64>>


Transform whole stream of f64 into a single vector block.

All the streamed values are added to a single vector, and once stream is over the vector is transmitted.

graph LR
    T(BlockAllStream)
    B["🟦 🟦 🟦 🟦 🟦 🟦"] -->|stream| T
    
    T -->|block| O["〈[🟦 🟦 🟦 🟦 🟦 🟦]〉"]

    style B fill:#ffff,stroke:#ffff
    style O fill:#ffff,stroke:#ffff

⚠️ As the stream values are continuously inserted in vector and so kept in memory, user should be really careful when using this treatment to not saturate memory.