original_string: public function requestAsync($url, $method = 'GET', $data = [])
      {
  
          $stack = HandlerStack::create();
          $stack->push(ApiMiddleware::auth());
          $client = new Client(['handler' => $stack]);
  
          $promise = $client->requestAsync($method, $url, [
              'headers' => [
                  'Authorization' => 'Bearer ' . $this->token
              ],
              'json' => $data,
              'content-type' => 'application/json'
          ]);
  
          return $promise;
  
      }
code: public function requestAsync($url, $method = 'GET', $data = [])
      {
  
          $stack = HandlerStack::create();
          $stack->push(ApiMiddleware::auth());
          $client = new Client(['handler' => $stack]);
  
          $promise = $client->requestAsync($method, $url, [
              'headers' => [
                  'Authorization' => 'Bearer ' . $this->token
              ],
              'json' => $data,
              'content-type' => 'application/json'
          ]);
  
          return $promise;
  
      }
code_tokens: public function requestAsync ( $ url , $ method = 'GET' , $ data = [ ] ) { $ stack = HandlerStack :: create ( ) ; $ stack -> push ( ApiMiddleware :: auth ( ) ) ; $ client = new Client ( [ 'handler' => $ stack ] ) ; $ promise = $ client -> requestAsync ( $ method , $ url , [ 'headers' => [ 'Authorization' => 'Bearer ' . $ this -> token ] , 'json' => $ data , 'content-type' => 'application/json' ] ) ; return $ promise ; }
docstring: Guzzle async request
  @param $url
  @param string $method
  @param array $data
  @return \GuzzleHttp\Promise\PromiseInterface
docstring_tokens: Guzzle async request