Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ask should push unhandled answers into deadletter #5221

Merged
Prev Previous commit
handle of Status.Failure
Zetanova committed Aug 26, 2021
commit 3439d7b8e6eba3ce738ef341d3a90494a2ea0018
4 changes: 4 additions & 0 deletions src/core/Akka/Actor/ActorRef.cs
Original file line number Diff line number Diff line change
@@ -118,6 +118,10 @@ protected override void TellInternal(object message, IActorRef sender)
case null:
handled = _result.TrySetResult(default);
break;
case Status.Failure f:
handled = _result.TrySetException(f.Cause
?? new TaskCanceledException("Task cancelled by actor via Failure message."));
break;
case Failure f:
handled = _result.TrySetException(f.Exception
?? new TaskCanceledException("Task cancelled by actor via Failure message."));