code: function removeWorkerById($id)
      {
          $this->logger->debug("will remove worker by id is $id");
          $found = -1;
          foreach ($this->workers as $i => $worker) {
              if ($worker->id() == $id) {
                  $found = $i;
                  break;
              }
          }
  
          if ($found > -1) {
              $worker = $this->workers[$found];
              $this->logger->debug("did removed worker by id is {$worker->id()}");
  
              unset($this->workers[$found]);
          }
      }
docs: 移除子进程
  
  @param int $id 进程ID
  @return void