| ReceiveActorReceiveT Method (FuncT, Boolean) |
Registers a handler for incoming messages of the specified type
T.
The handler should return
true if it has handled the message.
If the handler returns true no more handlers will be tried; otherwise the next registered handler will be tried.
Remarks Remarks Note that handlers registered prior to this may have handled the message already.
In that case, this handler will not be invoked.
Namespace:
Akka.Actor
Assembly:
Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax protected void Receive<T>(
Func<T, bool> handler
)
member Receive :
handler : Func<'T, bool> -> unit
Parameters
- handler
- Type: SystemFuncT, Boolean
The message handler that is invoked for incoming messages of the
specified type T. It should return trueif it handled/matched
the message; false otherwise.
Type Parameters
- T
- The type of the message
Exceptions See Also