protoactor-dotnet icon indicating copy to clipboard operation
protoactor-dotnet copied to clipboard

ISelfSupervise

Open rogeralsing opened this issue 2 years ago • 0 comments

Related to https://github.com/asynkron/protoactor-dotnet/issues/1041

Should we allow actors to supervise themselves?

Just as we can escalate exceptions to a parent. we could allow the actor to supervise themselves.

e.g.

public class SomeActor : IActor, ISelfSupervise 
{
      public Task Receive(...);

     void HandleFailure(RestartStatistics rs, Exception cause, object? message, other stuff...) {
          
     }
}

rogeralsing avatar Feb 20 '22 21:02 rogeralsing