setContext (array $context) : object

参数

@param  array  $context    任务上下文

含义

用于设定任务上下文

举栗

$context = [
];

//直接调用
Task::getInstance()->setContext($context);

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

results matching ""

    No results matching ""