Skip to main content

or_pending

Function or_pending 

Source
async fn or_pending<T, F>(value: Option<T>, f: impl FnOnce(T) -> F) -> F::Output
where F: Future,
Expand description

The output of f for the value, pending without one, like for a stream which ended.