creatMultiTask ($task_options = []) : boolean

参数

@param  array     $task_options     任务参数选项

含义

创建多条任务

举栗

$task_options = [
    'url'    => 'http://www.baidu.com',
    'method' => 'get',
];

//直接调用
Task::creatMultiTaskTask($task_options);

//通过phpcreeper实例调用
$this->worker->getTaskMan()->creatMultiTaskTask($task_options);

results matching ""

    No results matching ""