in src/Transport.php [396:415]
public function getAsyncClient(): HttpAsyncClient
{
if (!empty($this->asyncClient)) {
return $this->asyncClient;
}
if ($this->client instanceof HttpAsyncClient) {
return $this->client;
}
try {
$this->asyncClient = HttpAsyncClientDiscovery::find();
} catch (Exception $e) {
throw new NoAsyncClientException(sprintf(
"I did not find any HTTP library with HttpAsyncClient interface. " .
"Make sure to install a package providing \"php-http/async-client-implementation\". " .
"You can also set a specific async library using %s::setAsyncClient()",
self::class
));
}
return $this->asyncClient;
}