Idea - async for get, view and n1ql query

Hi,

As many of you already know that PHP isn’t particular good at async or non-blocking operation. It would be really great if we can have async support for $sdk->get(), $sdk->query() so that querying multiple queries does not block each other. getMulti does async, but there is no workaround for view or n1ql query.

This is how Guzzle does for multi curl operations.

$promise = $client->requestAsync('GET', 'http://httpbin.org/get');
$promise->then(function ($response) {
    echo 'Got a response! ' . $response->getStatusCode();
});

$promise = $client->requestAsync('GET', 'http://httpbin.org/somewhere-else');
$promise->then(function ($response) {
    echo 'Got a response from somewhere-else! ' . $response->getStatusCode();
});

Thank you for pointing. I like this api will definitely try to implement it