![]() | ReceiveActorReceiveAsync Method |
Name | Description | |
---|---|---|
![]() | ReceiveAsyncT(FuncT, Task, PredicateT) |
Registers an asynchronous handler for incoming messages of the specified type T.
If shouldHandle!=null then it must return true before a message is passed to handler.
![]() The actor will be suspended until the task returned by handler completes. ![]() This method may only be called when constructing the actor or from Become(Action) or BecomeStacked(Action). ![]() Note that handlers registered prior to this may have handled the message already.
In that case, this handler will not be invoked. |
![]() | ReceiveAsyncT(PredicateT, FuncT, Task) |
Registers an asynchronous handler for incoming messages of the specified type T.
If shouldHandle!=null then it must return true before a message is passed to handler.
![]() The actor will be suspended until the task returned by handler completes. ![]() This method may only be called when constructing the actor or from Become(Action) or BecomeStacked(Action). ![]() Note that handlers registered prior to this may have handled the message already.
In that case, this handler will not be invoked. |
![]() | ReceiveAsync(Type, FuncObject, Task, PredicateObject) |
Registers an asynchronous handler for incoming messages of the specified messageType.
If shouldHandle!=null then it must return true before a message is passed to handler.
![]() The actor will be suspended until the task returned by handler completes. ![]() This method may only be called when constructing the actor or from Become(Action) or BecomeStacked(Action). ![]() Note that handlers registered prior to this may have handled the message already.
In that case, this handler will not be invoked. |
![]() | ReceiveAsync(Type, PredicateObject, FuncObject, Task) |
Registers an asynchronous handler for incoming messages of the specified messageType.
If shouldHandle!=null then it must return true before a message is passed to handler.
![]() The actor will be suspended until the task returned by handler completes. ![]() This method may only be called when constructing the actor or from Become(Action) or BecomeStacked(Action). ![]() Note that handlers registered prior to this may have handled the message already.
In that case, this handler will not be invoked. |