Scala Library
|
|
scala/concurrent/MailBox.scala
]
class
MailBox
extends
ListQueueCreatorType Summary | |
type
|
Message |
Method Summary | |
def
|
receive
[A](f : PartialFunction[AnyRef, A]) : A
Block until there is a message in the mailbox for which the processor
f is defined. |
def
|
receiveWithin
[A](msec : Long)(f : PartialFunction[AnyRef, 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 : AnyRef) : 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.
|
Methods inherited from ListQueueCreator | |
queueCreate |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Type Details |
Method Details |
def
receive[A](f : PartialFunction[AnyRef, A]) : A
f
is defined.
def
receiveWithin[A](msec : Long)(f : PartialFunction[AnyRef, A]) : A
f
is defined or the timeout is over.
Scala Library
|
|