creatTask ($task_options = []) : int

参数

@param  array     $task_options      任务参数选项

含义

创建一条任务

举栗

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

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

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

results matching ""

    No results matching ""