rw_futures_util

Function pausable

source
pub fn pausable<St>(stream: St) -> (Pausable<St>, Valve)
where St: Stream,
Expand description

Create a pausable stream, which can be paused or resumed by a valve.