Skip to main content

sipper

Function sipper 

pub fn sipper<Progress, F, T>(builder: F) -> impl Sipper<T, Progress>
where F: AsyncFnOnce(Sender<Progress>) -> T,
Available on crate feature sipper only.
Expand description

Creates a new Sipper from the given async closure, which receives a [Sender] that can be used to notify progress asynchronously.