original_string: public function requestAsync($method, $url, $body = [], $query = [], $headers = [])
      {
          if (!empty($body)) {
              $body = encode($body);
              $headers['Content-Type'] = 'application/json';
          } else {
              $body = null;
          }
  
          $headers = array_merge($this->global_headers, $headers);
  
          return $this->client->requestAsync($method, $url, [
              'query'   => $query,
              'body'    => $body,
              'headers' => $headers,
          ]);
      }
code: public function requestAsync($method, $url, $body = [], $query = [], $headers = [])
      {
          if (!empty($body)) {
              $body = encode($body);
              $headers['Content-Type'] = 'application/json';
          } else {
              $body = null;
          }
  
          $headers = array_merge($this->global_headers, $headers);
  
          return $this->client->requestAsync($method, $url, [
              'query'   => $query,
              'body'    => $body,
              'headers' => $headers,
          ]);
      }
code_tokens: public function requestAsync ( $ method , $ url , $ body = [ ] , $ query = [ ] , $ headers = [ ] ) { if ( ! empty ( $ body ) ) { $ body = encode ( $ body ) ; $ headers [ 'Content-Type' ] = 'application/json' ; } else { $ body = null ; } $ headers = array_merge ( $ this -> global_headers , $ headers ) ; return $ this -> client -> requestAsync ( $ method , $ url , [ 'query' => $ query , 'body' => $ body , 'headers' => $ headers , ] ) ; }
docstring: Return a promise for async requests.
  
  @param string $method
  @param string $url
  @param array  $body
  @param array  $query
  @param array  $headers
  
  @return \GuzzleHttp\Promise\PromiseInterface
docstring_tokens: Return a promise for async requests .