#### 问题描述
按照文档中并发请求 使用的,结果确实时间叠加,并没有速度快
这里写问题描述
```php
$client = new Client();
$requests = function ($total) {
$uri = 'http://www.baidu.com';
for ($i = 0; $i < $total; $i++) {
yield new GRequest('GET', $uri);
}
};
$pool = new Pool($client, $requests(10), [
'concurrency' => 10,
'fulfilled' => function ($response, $index) {
// this is delivered each successful response
},
'rejected' => function ($reason, $index) {
// this is delivered each failed request
},
]);
// Initiate the transfers and create a promise
$promise = $pool->promise();
// Force the pool of requests to complete.
$promise->wait();
```