【发布时间】:2020-10-15 17:36:42
【问题描述】:
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) {
支持的最大并发请求数是多少?
【问题讨论】:
标签: php concurrency guzzle