Sequence VecTrigger

std/flow/f64::VecTrigger


Inputs

value: Stream<Vec<f64>>

Outputs

↦ start: Block<void>
↦ finish: Block<void>


Trigger on Vec<f64> stream start and finish.

Send start when a first vector is send through the stream. Send finish when stream is finally over.

graph LR
    T(VecTrigger)
    B["🔴 …[🟦 🟦 🟦][🟦 🟦 🟦][🟦 🟦 🟦][🟦 🟦 🟦] … 🟢"] -->|value| T
    
    T -->|start| S["〈🟩〉"]
    T -->|finish| F["〈🟥〉"]

    style B fill:#ffff,stroke:#ffff
    style S fill:#ffff,stroke:#ffff
    style F fill:#ffff,stroke:#ffff

ℹ️ If the stream never receive any vector before being closed, only finish will be emitted.