protoactor-dotnet
protoactor-dotnet copied to clipboard
ISelfSupervise
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...) {
}
}