104 $notifierIds = $this->sharedObject->synchronized(
function() : array{
106 foreach($this->sharedObject as $notifierId => $_){
107 $notifierIds[$notifierId] = $notifierId;
108 unset($this->sharedObject[$notifierId]);
112 if(count($notifierIds) === 0){
115 foreach($notifierIds as $notifierId){
116 if(!isset($this->handlers[$notifierId])){
120 $this->handlers[$notifierId]();