pub trait CtxExtension<'js> {
// Required methods
fn spawn_exit<F, R>(&self, future: F) -> Result<Receiver<R>>
where F: Future<Output = Result<R>> + 'js,
R: 'js;
fn spawn_exit_simple<F>(&self, future: F)
where F: Future<Output = Result<()>> + 'js;
}Required Methods§
Sourcefn spawn_exit<F, R>(&self, future: F) -> Result<Receiver<R>>
fn spawn_exit<F, R>(&self, future: F) -> Result<Receiver<R>>
Despite naming, this will not necessarily exit the parent process.
It depends on the handler set by set_spawn_error_handler.
fn spawn_exit_simple<F>(&self, future: F)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".