Sequence VecTrigger

std/flow/i8::VecTrigger


Inputs

value: Stream<Vec<i8>>

Outputs

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


Trigger on Vec<i8> 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.