|
Scala 2.4.0-RC1
|
class
MailBox
extends
java.lang.Object
with
scala.concurrent.ListQueueCreator
with
scala.ScalaObject
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 Detail |
def
receive
[a](f: scala.PartialFunction[java.lang.Object, a]): a
f
is defined.
def
receiveWithin
[a](msec: scala.Long)(f: scala.PartialFunction[java.lang.Object, a]): a
f
is defined or the timeout is over.
def
send
(msg: java.lang.Object): scala.Unit