* @param int $counts 任务数量
*/
public function Add(int $counts = 1) {
if (!* @field int $workerOkCounts 已完成的任务数
* @field int workerCounts 任务总数
*/
public functionworker->onWorkerStart = function () {
$options = [
'max_conn_per_addr' => 30, // 每个地址最多维持多少并发连接);
$waitGroup->Done(function ($workerOkCounts, $workerCounts) {
echo "任务进度{
$waitGroup->Done(function ($workerOkCounts, $workerCounts) {
echo "任务进度