pub trait ContextFutureSpawner<A>where A: Actor, A::Context: AsyncContext<A>,{ // Required methods fn spawn(self, ctx: &mut A::Context); fn wait(self, ctx: &mut A::Context); }
Helper trait which can spawn a future into the actor’s context.
Spawns the future into the given context.
Spawns the future into the given context, waiting for it to resolve.
This stops processing any incoming events until this future resolves.