| ActReceiveAsyncT Method (FuncT, IActorContext, Task, PredicateT) |
Registers an async handler for messages of the specified type T
Namespace:
Akka.Actor.Dsl
Assembly:
Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public void ReceiveAsync<T>(
Func<T, IActorContext, Task> handler,
Predicate<T> shouldHandle = null
)
abstract ReceiveAsync :
handler : Func<'T, IActorContext, Task> *
?shouldHandle : Predicate<'T>
(* Defaults:
let _shouldHandle = defaultArg shouldHandle null
*)
-> unit
override ReceiveAsync :
handler : Func<'T, IActorContext, Task> *
?shouldHandle : Predicate<'T>
(* Defaults:
let _shouldHandle = defaultArg shouldHandle null
*)
-> unit
Parameters
- handler
- Type: SystemFuncT, IActorContext, Task
the message handler invoked on the incoming message - shouldHandle (Optional)
- Type: SystemPredicateT
when not null, determines whether this handler should handle the message
Type Parameters
- T
- the type of the message
Implements
IActorDslReceiveAsyncT(FuncT, IActorContext, Task, PredicateT)See Also