chickadee » mailbox » mailbox-receive!

mailbox-receive! MAILBOX #!optional TIMEOUT DEFAULTprocedure

If there is any data in MAILBOX, then the first object will be removed and returned as the result. If the mailbox is currently empty, the current thread will suspended until data is available.

TIMEOUT is a SRFI-18 time object or the real number of seconds.

Should TIMEOUT be specified and occur the DEFAULT, if supplied, will be returned. Otherwise a mailbox timeout exception will be signaled for the calling thread. The DEFAULT value cannot be (void).