Description
|
public override async Task Receive(MessageEnvelope envelope) |
|
{ |
|
var receiveTask = base.Receive(envelope); |
|
|
|
if (receiveTask.IsCompleted) |
|
{ |
|
return; |
|
} |
If the task returned by base.Receive(envelope) throws an exception synchronously (i.e. immediately, not awaiting anything, e.g. Task.FromException(ex)), then the code above just ignores the exception and returns.
Expected Behavior
The exception should be propagated up to the call stack.
Description
protoactor-dotnet/src/Proto.Actor/Context/DeadlineContextDecorator.cs
Lines 50 to 57 in 173ee91
If the task returned by
base.Receive(envelope)throws an exception synchronously (i.e. immediately, not awaiting anything, e.g.Task.FromException(ex)), then the code above just ignores the exception and returns.Expected Behavior
The exception should be propagated up to the call stack.