in scala.concurrent
class MailBox

`class` MailBox
  `extends` java.lang.Object
  `with` scala.concurrent.ListQueueCreator
  `with` scala.ScalaObject

Constructor Summary
| `def` this

Type Summary
| `type` Message

Class Summary
`abstract` `private` | `class` PreReceiver
`private` | `class` Receiver [ a ]

Def Summary
| `def` receive [ a ] ( f : scala.PartialFunction[java.lang.Object,a] ) : a Block until there is a message in the mailbox for which the processor `f` is defined.
| `def` receiveWithin [ a ] ( msec : scala.Long ) ( f : scala.PartialFunction[java.lang.Object,a] ) : a Block until there is a message in the mailbox for which the processor `f` is defined or the timeout is over.
| `def` send ( msg : java.lang.Object ) : scala.Unit First check whether a pending receiver is applicable to the sent message. If yes, the receiver is notified. Otherwise the message is appended to the linked list of sent messages.

Constructor Detail

`def` this

Type Detail

`type` Message

Def Detail

`def` receive [ a ]( f : scala.PartialFunction[java.lang.Object,a] ) : a

  Block until there is a message in the mailbox for which the processor `f` is defined.

`def` receiveWithin [ a ]( msec : scala.Long ) ( f : scala.PartialFunction[java.lang.Object,a] ) : a

  Block until there is a message in the mailbox for which the processor `f` is defined or the timeout is over.

`def` send ( msg : java.lang.Object ) : scala.Unit

  First check whether a pending receiver is applicable to the sent message. If yes, the receiver is notified. Otherwise the message is appended to the linked list of sent messages.