Treatment emit

std/flow::emit


Generics

◻ T (any)

Parameters

↳ var value: T

Inputs

⇥ trigger: Block<void>

Outputs

↦ emit: Block<T>


Emit a blocking value.

When trigger is enabled, value is emitted as block.

graph LR
     T("emit(value=🟨)")
     B["〈🟦〉"] -->|trigger| T
         
     T -->|emit| S["〈🟨〉"]
     
     style B fill:#ffff,stroke:#ffff
     style S fill:#ffff,stroke:#ffff