pub trait Defer: Send + Sync {
// Required method
fn wait_until(&self, fut: BoxFuture<'static, ()>);
}Required Methods§
Sourcefn wait_until(&self, fut: BoxFuture<'static, ()>)
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".