Skip to main content

future

Function future 

Source
pub fn future<F: Future>(
    label: Label,
    root: Option<&Path>,
    inner: F,
) -> Labelled<F> ⓘ
Expand description

inner, with every poll run under label. For async work, where a ScopeGuard cannot be held across an await: the label is open from the first poll until the future is dropped.