fn notify_later<M>(&mut self, msg: M, after: Duration) -> SpawnHandle
    where
        A: Handler<M>,
        M: Message + 'static,
    {
        if self.state() == ActorState::Stopped {
            error!("Context::notify_later called for stopped actor.");
            SpawnHandle::default()
        } else {
            self.spawn(ActorDelayedMessageItem::new(msg, after))
        }
    }
/// Sends the message `msg` to self after a specified period of time.
///
/// Returns a spawn handle which can be used for cancellation. The
/// notification gets cancelled if the context's stop method gets
/// called. This bypasses the mailbox capacity, and
/// will always queue the message. If the actor is in the `stopped` state, an
/// error will be raised.
Sends the message `msg` to self after a specified period of time.
Returns a spawn handle which can be used for cancellation. The
notification gets cancelled if the context's stop method gets
called. This bypasses the mailbox capacity, and
will always queue the message. If the actor is in the `stopped` state, an
error will be raised.
Sends the message ` msg ` to self after a specified period of time . Returns a spawn handle which can be used for cancellation . The notification gets cancelled if the context ' s stop method gets called . This bypasses the mailbox capacity and will always queue the message . If the actor is in the ` stopped ` state an error will be raised .
fn notify_later<M>(&mut self, msg: M, after: Duration) -> SpawnHandle
    where
        A: Handler<M>,
        M: Message + 'static,
    {
        if self.state() == ActorState::Stopped {
            error!("Context::notify_later called for stopped actor.");
            SpawnHandle::default()
        } else {
            self.spawn(ActorDelayedMessageItem::new(msg, after))
        }
    }
fn notify_later < M > ( & mut self , msg : M , after : Duration ) -> SpawnHandle where A : Handler < M > , M : Message + ' static , { if self . state ( ) == ActorState :: Stopped { error ! ( " " ) ; SpawnHandle :: default ( ) } else { self . spawn ( ActorDelayedMessageItem :: new ( msg , after ) ) } }
Sends the message `msg` to self after a specified period of time.
Sends the message ` msg ` to self after a specified period of time .
&mut self
msg
M
after
Duration
&mut self
msg
M
after
Duration