The function
mailbox-read
returns the next object from the mailbox
mailbox
, or
nil
.
If
mailbox
is empty and
timeout
is
nil
, then
mailbox-read
blocks until an object is placed in
mailbox
. If
mailbox
is empty and
timeout
is a number, then
mailbox-read
blocks until an object is placed in
mailbox
or
timeout
seconds have passed. If the timeout occurs, then
mailbox-read
returns
nil
as the first value and also
flag
is
nil
. If an object is actually read from the mailbox, then
flag
is
t
.
The
wait-reason
argument defaults to
"Waiting for message in #<Mailbox...>"
and will be the value returned by process-whostate while
mailbox-read
is blocking.
LispWorks User Guide and Reference Manual - 21 Dec 2011