original_string: private function cancel($id)
      {
          // Cannot cancel if it has been processed.
          if (!isset($this->handles[$id])) {
              return false;
          }
  
          $handle = $this->handles[$id]['easy']->handle;
          unset($this->delays[$id], $this->handles[$id]);
          curl_multi_remove_handle($this->_mh, $handle);
          curl_close($handle);
  
          return true;
      }
code: private function cancel($id)
      {
          // Cannot cancel if it has been processed.
          if (!isset($this->handles[$id])) {
              return false;
          }
  
          $handle = $this->handles[$id]['easy']->handle;
          unset($this->delays[$id], $this->handles[$id]);
          curl_multi_remove_handle($this->_mh, $handle);
          curl_close($handle);
  
          return true;
      }
code_tokens: private function cancel ( $ id ) { // Cannot cancel if it has been processed. if ( ! isset ( $ this -> handles [ $ id ] ) ) { return false ; } $ handle = $ this -> handles [ $ id ] [ 'easy' ] -> handle ; unset ( $ this -> delays [ $ id ] , $ this -> handles [ $ id ] ) ; curl_multi_remove_handle ( $ this -> _mh , $ handle ) ; curl_close ( $ handle ) ; return true ; }
docstring: Cancels a handle from sending and removes references to it.
  
  @param int $id Handle ID to cancel and remove.
  
  @return bool True on success, false on failure.
docstring_tokens: Cancels a handle from sending and removes references to it .