Trait actix_web::actix::ContextFutureSpawner
source · 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);
}
Expand description
Helper trait which can spawn future into actor’s context