| IActorDslReceiveAsyncT Method (PredicateT, FuncT, IActorContext, Task) |
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 void ReceiveAsync<T>(
Predicate<T> shouldHandle,
Func<T, IActorContext, Task> handler
)
abstract ReceiveAsync :
shouldHandle : Predicate<'T> *
handler : Func<'T, IActorContext, Task> -> unit
Parameters
- shouldHandle
- Type: SystemPredicateT
determines whether this handler should handle the message - handler
- Type: SystemFuncT, IActorContext, Task
the message handler invoked on the incoming message
Type Parameters
- T
See Also