Click or drag to resize
Akka.NETActReceiveAsyncT 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.42 (1.2.3.42)
Syntax
public void ReceiveAsync<T>(
	Predicate<T> shouldHandle,
	Func<T, IActorContext, Task> handler
)

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

Implements

IActorDslReceiveAsyncT(PredicateT, FuncT, IActorContext, Task)
See Also