Pool::shutdown PHP Méthode

shutdown() public méthode

Shutdown all Workers in this Pool
public shutdown ( )
    public function shutdown()
    {
    }

Usage Example

 public function cancelAllTasks()
 {
     foreach ($this->tasks as $task) {
         $task->cancel();
     }
     $this->tasks = [];
     $this->asyncPool->shutdown();
     $this->asyncTasks = 0;
 }
All Usage Examples Of Pool::shutdown