Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Treatment barrier

std/flow::barrier


Generics

◻ T (any)

Inputs

⇥ leverage: Block<bool>
⇥ stream: Stream<T>

Outputs

↦ passed: Stream<T>


Barrier stream under condition.

Awaits leverage to let stream pass if it is true, else closes the stream.