[−][src]Trait scrappy_actor::prelude::ContextFutureSpawner
Helper trait which can spawn a future into the actor's context.
Required methods
fn spawn(self, ctx: &mut A::Context)
Spawns the future into the given context.
fn wait(self, ctx: &mut A::Context)
Spawns the future into the given context, waiting for it to resolve.
This stops processing any incoming events until this future resolves.
Implementors
impl<A, T> ContextFutureSpawner<A> for T where
A: Actor,
A::Context: AsyncContext<A>,
T: ActorFuture<Output = (), Actor = A> + 'static,
[src]
A: Actor,
A::Context: AsyncContext<A>,
T: ActorFuture<Output = (), Actor = A> + 'static,