Trait rqjs_cli::vm::CtxExtension

source ·
pub trait CtxExtension<'js> {
    // Required method
    fn spawn_exit<F, R>(&self, future: F) -> Result<Receiver<R>>
       where F: Future<Output = Result<R>> + 'js,
             R: 'js;
}

Required Methods§

source

fn spawn_exit<F, R>(&self, future: F) -> Result<Receiver<R>>
where F: Future<Output = Result<R>> + 'js, R: 'js,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'js> CtxExtension<'js> for Ctx<'js>

source§

fn spawn_exit<F, R>(&self, future: F) -> Result<Receiver<R>>
where F: Future<Output = Result<R>> + 'js, R: 'js,

Implementors§