PHP Guzzle允许您发出并发请求,但是您必须指定“并发”数字作为参数。
例如:
$client = new Client();
$pool = new Pool($client, $generator($url, $data), [
'concurrency' => 5,//this lets you set how many concurrent requests can be made
'fulfilled' => function($response, $id) {
支持的并发请求最大数量是多少?