Trait Wait

Source
pub trait Wait: Resolvable {
    // Required method
    fn wait(self) -> Self::To;
}
Expand description

Synchronous execution of a resolvable

Required Methods§

Source

fn wait(self) -> Self::To

Synchronously execute and wait

Implementors§

Source§

impl<C, To> Wait for ResolveClosure<C, To>
where To: Sized + Send, C: FnOnce() -> To + Send,

Source§

impl<F, To> Wait for ResolveFuture<F, To>
where To: Sized + Send, F: Future<Output = To> + Send,