src/Worker.php
function derefTask(\CharlotteDunois\Phoebe\AsyncTask $task) {
        if(isset($this->refBag[$task->id])) {
            unset($this->refBag[$task->id]);
            
            if(\count($this->refBag) === 0 && $this->stack->count() === 0) {
                $this->bag->lastEmptyStack = \time();
                $this->bag->currentlyBusy = false;
                
                $msg = new \CharlotteDunois\Phoebe\Message('internal-worker-stack-free', null);
                $this->sendMessageToPool($msg);
            }
        }
    }
function derefTask(\CharlotteDunois\Phoebe\AsyncTask $task) {
        if(isset($this->refBag[$task->id])) {
            unset($this->refBag[$task->id]);
            
            if(\count($this->refBag) === 0 && $this->stack->count() === 0) {
                $this->bag->lastEmptyStack = \time();
                $this->bag->currentlyBusy = false;
                
                $msg = new \CharlotteDunois\Phoebe\Message('internal-worker-stack-free', null);
                $this->sendMessageToPool($msg);
            }
        }
    }
Dereferences a task. Decrements the worker's busy counter.
This method is automatically called by the task.
@param \CharlotteDunois\Phoebe\AsyncTask  $task
@return void