Treatment one

std/flow::one


Generics

◻ T (any)

Inputs

⇥ a: Block<T>
⇥ b: Block<T>

Outputs

↦ value: Block<T>


Emit one block.

Take first block coming among a or b and emit it in value, ignoring the remaining one.

ℹ️ No priority between blocks can be assumed if they are ready at same moment.

graph LR
     T("one()")
     A["…"] -->|a| T
     B["〈🟧〉"] -->|b| T
     

     T -->|value| V["〈🟧〉"]

     style V fill:#ffff,stroke:#ffff
     style A fill:#ffff,stroke:#ffff
     style B fill:#ffff,stroke:#ffff