|
Scala 2
|
||
class
MailBox
extends
java.lang.Object with
ListQueueCreator with
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 : PartialFunction )
: a&
Block until there is a message in the mailbox for which the processor f is defined.
|
|
def
receiveWithin
[ a& ]
( msec : scala.Long ) ( f : PartialFunction )
: 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 : PartialFunction ) : a&
f is defined.def
receiveWithin
[ a& ]( msec : scala.Long ) ( f : PartialFunction ) : a&
f is defined or the timeout is over.def
send
( msg : java.lang.Object ) : scala.Unit