Scala Library
|
|
scala/actors/Replyable.scala
]
trait
Replyable[-T, +R]
extends
AnyRefMethod Summary | |
def
|
!!
[P](msg : T, f : PartialFunction[R, P]) : () => P
Sends
msg to this actor and immediately
returns a future representing the reply value.
The reply is post-processed using the partial function
f . This also allows to recover a more
precise type for the reply value. |
def
|
!!
(msg : T) : () => R
Sends
msg to this actor and immediately
returns a future representing the reply value. |
abstract def
|
!?
(msec : Long, msg : T) : Option[R]
Sends
msg to this Replyable and awaits reply
(synchronous) within msec milliseconds. |
abstract def
|
!?
(msg : T) : R
Sends
msg to this Replyable and awaits reply
(synchronous). |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
msg
to this Replyable and awaits reply
(synchronous).msg -
the message to be sentmsg
to this Replyable and awaits reply
(synchronous) within msec
milliseconds.msec -
the time span before timeoutmsg -
the message to be sentNone
in case of timeout, otherwise Some(x)
where x
is the replymsg
to this actor and immediately
returns a future representing the reply value.msg -
the message to be sent
def
!![P](msg : T, f : PartialFunction[R, P]) : () => P
msg
to this actor and immediately
returns a future representing the reply value.
The reply is post-processed using the partial function
f
. This also allows to recover a more
precise type for the reply value.msg -
the message to be sentf -
the function to be applied to the response
Scala Library
|
|