MessageBox

A MessageBox is a message queue for one actor.

Other actors may send messages to this owner by calling put(), and the owner receives them by calling get(). The put() call is therefore effectively shared and the get() call is effectively local. setMaxMsgs may be used by any actor to limit the size of the message queue.

Constructors

this
this()
Undocumented in source.

Members

Functions

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
get
bool get(Duration timeout, Message msg)

Try to pop a message from the mailbox.

put
bool put(Message msg)
Undocumented in source. Be warned that the author may not have intended to support it.
put
void put(Message msg)
setMaxMsgs
void setMaxMsgs(size_t num)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

isClosed
bool isClosed [@property getter]

Meta