pub fn spawn<F>(&mut self, fut: F) -> SpawnHandle
    where
        F: ActorFuture<A, Output = ()> + 'static,
    {
        let handle = self.handles[0].next();
        self.handles[0] = handle;
        let fut: Box<dyn ActorFuture<A, Output = ()>> = Box::new(fut);
        self.items.push((handle, Pin::from(fut)));
        handle
    }
/// Spawn new future to this context.
Spawn new future to this context.
Spawn new future to this context .
pub fn spawn<F>(&mut self, fut: F) -> SpawnHandle
    where
        F: ActorFuture<A, Output = ()> + 'static,
    {
        let handle = self.handles[0].next();
        self.handles[0] = handle;
        let fut: Box<dyn ActorFuture<A, Output = ()>> = Box::new(fut);
        self.items.push((handle, Pin::from(fut)));
        handle
    }
pub fn spawn < F > ( & mut self , fut : F ) -> SpawnHandle where F : ActorFuture < A , Output = ( ) > + ' static , { let handle = self . handles [ 0 ] . next ( ) ; self . handles [ 0 ] = handle ; let fut : Box < dyn ActorFuture < A , Output = ( ) > > = Box :: new ( fut ) ; self . items . push ( ( handle , Pin :: from ( fut ) ) ) ; handle }
Spawn new future to this context.
Spawn new future to this context .
&mut self
fut
F
&mut self
fut
F