PHP specify允许您进行并发请求,但您必须将“并发”数指定为参数。
例如:
$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) {
支持的最大并发请求数是多少?
发布于 2020-10-15 17:36:42
该值没有限制。默认情况下,它将是25。
https://stackoverflow.com/questions/64368043
复制相似问题