Sequence BlockAllStream

std/flow/bool::BlockAllStream


Inputs

stream: Stream<bool>

Outputs

↦ block: Block<Vec<bool>>


Transform whole stream of bool 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.