Treatment filterBlock
std/flow::filterBlock
Generics
◻ T (any)
Inputs
⇥ select: Block<bool>
⇥ value: Block<T>
Outputs
↦ accepted: Block<T>
↦ rejected: Block<T>
Filter a block according to bool value.
ℹ️ If select is never received nothing is emitted.
graph LR
T("filterBlock()")
V["〈🟦〉"] -->|value| T
D["〈🟩〉"] -->|select|T
T -->|accepted| A["〈🟦〉"]
T -->|rejected| R[" "]
style V fill:#ffff,stroke:#ffff
style D fill:#ffff,stroke:#ffff
style A fill:#ffff,stroke:#ffff
style R fill:#ffff,stroke:#ffff