Example #1
0
 /**
  * Remove promise from runner
  *
  * @param PromiseCore $core
  */
 public function remove(PromiseCore $core)
 {
     foreach ($this->cores as $index => $existed) {
         if ($existed === $core) {
             curl_multi_remove_handle($this->multiHandle, $core->getHandle());
             unset($this->cores[$index]);
             return;
         }
     }
 }