[][src]Trait actix_web::actix::ContextFutureSpawner

pub trait ContextFutureSpawner<A> where
    A: Actor,
    <A as Actor>::Context: AsyncContext<A>, 
{ fn spawn(self, ctx: &mut <A as Actor>::Context);
fn wait(self, ctx: &mut <A as Actor>::Context); }

Helper trait which can spawn future into actor's context

Required methods

fn spawn(self, ctx: &mut <A as Actor>::Context)

spawn future into Context<A>

fn wait(self, ctx: &mut <A as Actor>::Context)

Spawn future into the context. Stop processing any of incoming events until this future resolves.

Loading content...

Implementors

impl<A, T> ContextFutureSpawner<A> for T where
    A: Actor,
    T: ActorFuture<Item = (), Error = (), Actor = A> + 'static,
    <A as Actor>::Context: AsyncContext<A>, 
[src]

Loading content...