Yngvarr

Generation

generate functionThu, 13 Apr 2023

curl asynchrone pool

$client = new Client(); $promises = ['foo', 'bar', 'baz'] ->map( function ($url) use ($client) { return $client->getAsync($url); } ); $results = Promise\settle($promises)->wait();

Questions about programming?Chat with your personal AI assistant