Trait actix::prelude::ContextFutureSpawner [−][src]
pub trait ContextFutureSpawner<A> where
A: Actor,
A::Context: AsyncContext<A>, { fn spawn(self, ctx: &mut A::Context); fn wait(self, ctx: &mut A::Context); }
Helper trait which can spawn future into actor's context
Required Methods
fn spawn(self, ctx: &mut A::Context)
spawn future into Context<A>
fn wait(self, ctx: &mut A::Context)
Spawn future into the context. Stop processing any of incoming events until this future resolves.
Implementors
impl<A, T> ContextFutureSpawner<A> for T where
A: Actor,
A::Context: AsyncContext<A>,
T: ActorFuture<Item = (), Error = (), Actor = A> + 'static,