PHP - Manual: GearmanClient::runTasks
2024-12-22
(PECL gearman >= 0.5.0)
GearmanClient::runTasks — Run a list of tasks in parallel
For a set of tasks previously added with GearmanClient::addTask(), GearmanClient::addTaskHigh(), GearmanClient::addTaskLow(), GearmanClient::addTaskBackground(), GearmanClient::addTaskHighBackground(), or GearmanClient::addTaskLowBackground(), this call starts running the tasks in parallel.
此函数没有参数。
成功时返回 true
, 或者在失败时返回 false
。
官方地址:https://www.php.net/manual/en/gearmanclient.runtasks.php