public function sendAsync(RequestInterface $request, callable $success = null, callable $error = null)
    {
        $this->emit('beforeRequest', [$request]);
        $this->sendAsyncInternal($request, $success, $error);
        $this->poll();
    }
public function sendAsync(RequestInterface $request, callable $success = null, callable $error = null)
    {
        $this->emit('beforeRequest', [$request]);
        $this->sendAsyncInternal($request, $success, $error);
        $this->poll();
    }
public function sendAsync ( RequestInterface $ request , callable $ success = null , callable $ error = null ) { $ this -> emit ( 'beforeRequest' , [ $ request ] ) ; $ this -> sendAsyncInternal ( $ request , $ success , $ error ) ; $ this -> poll ( ) ; }
Sends a HTTP request asynchronously.

Due to the nature of PHP, you must from time to time poll to see if any
new responses came in.

After calling sendAsync, you must therefore occasionally call the poll()
method, or wait().
Sends a HTTP request asynchronously .