You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Work on supervision trees has begun in the supervision-trees branch. The API I currently have in mind looks as follows:
finalclass Supervisor
{
publicconstONE_FOR_ONE = 0;
publicfunction__construct(ActorRef|string$supervisor[, int$strategy]);
// Add a pre-existing actor to the group of supervised workerspublicfunction addWorker(ActorRef|string$worker) : void;
// Creates a new actor, links it to the supervisor, and return its actor reference// This should be used if the actor's constructor may throw an exceptionpublicfunction newWorker(string$actorClass[, array$ctorArgs[, string$actorName]]) : ActorRef;
}
To do list:
Prevent the supervision tree from containing cycles
Work out what the semantics should be for a crashing supervisor
The text was updated successfully, but these errors were encountered:
The basic implementation from the supervision-trees branch has been merged. I'm leaving this issue open because there is still much work to be done on the supervision trees feature.
Work on supervision trees has begun in the supervision-trees branch. The API I currently have in mind looks as follows:
To do list:
The text was updated successfully, but these errors were encountered: