in scala.concurrent
class MailBox

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

  This class ...

Author:
  Martin Odersky
Version:
  1.0, 12/03/2003

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

Constructor Summary
| `def` this

Type Summary
| `type` Message

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.

Def inherited from scala.concurrent.ListQueueCreator
queueCreate

Constructor Detail

`def` this

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.