DelayedMessageBox.put

Add a message that will trigger in the future.

If maxMsgs is not set, the message is added to the queue and the owner is notified. If the queue is full, the message will still be accepted if it is a control message, otherwise onCrowdingDoThis is called. If the routine returns true, this call will block until the owner has made space available in the queue. If it returns false, this call will abort.

  1. bool put(DelayedMessage msg)
  2. void put(DelayedMessage msg)
    class DelayedMessageBox
    final
    void
    put

Parameters

msg DelayedMessage

The message to put in the queue.

Return Value

Type: void

true if the message where successfully added to the mailbox.

Throws

An exception if the queue is full and onCrowdingDoThis throws.

Meta