Yngvarr

Generation

generate functionThu, 13 Apr 2023

curl asynchrone pool

$pool = new Pool(10, Client::class, [ 'base_uri' => 'https://example.org', ]); for ($i = 0; $i < 100; ++$i) { $pool->submit($this->getRequest('/something')); } $promise = $pool->promise(); $response = $promise->wait();

Questions about programming?Chat with your personal AI assistant