Sequence Trigger

std/flow/i32::Trigger


Inputs

value: Stream<i32>

Outputs

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


Trigger on i32 stream start and finish.

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

graph LR
    T(Trigger)
    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 data before being closed, only finish will be emitted.