Skip to main content

Defer

Trait Defer 

Source
pub trait Defer: Send + Sync {
    // Required method
    fn wait_until(&self, fut: BoxFuture<'static, ()>);
}

Required Methods§

Source

fn wait_until(&self, fut: BoxFuture<'static, ()>)

Schedule work to continue after the response is returned (Context::wait_until on Workers, tokio::spawn natively).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§