Yngvarr

Generation

generate functionThu, 13 Apr 2023

curl asynchrone pool

function some_curl_pool($urls) { $pool = new AsyncPool(); foreach ($urls as $url) { $pool->add(function () use ($url) { return $this->curl($url); }); } $pool->start(); }

Questions about programming?Chat with your personal AI assistant