-
Notifications
You must be signed in to change notification settings - Fork 1
Exists
laforge49 edited this page Jun 29, 2011
·
9 revisions
Home > Sequence Actors > Sequence Operations > Exists
SeqActor has an asynchronous function for determining if a matching value is present in a sequence.
def exists(e: V => Boolean)
(responseProcess: PartialFunction[Any, Unit])
(implicit sourceActor: ActiveActor)
This function operates over the values of a sequence and, when safe to do so, is executed synchronously.
There is one request message and one response message defined for exists:
case class ExistsReq[V](exists: V => Boolean)
case class ExistsRsp(result: Boolean)
###Test