modify
This commit is contained in:
@@ -95,11 +95,13 @@ class CrontabProcess extends Process
|
|||||||
}
|
}
|
||||||
if ($content->isLoop()) {
|
if ($content->isLoop()) {
|
||||||
$this->names[$name] = Timer::tick(intval($content->getTickTime() * 1000), function ($content) {
|
$this->names[$name] = Timer::tick(intval($content->getTickTime() * 1000), function ($content) {
|
||||||
$content->execute($this);
|
var_dump(Timer::class);
|
||||||
|
// $content->execute($this);
|
||||||
}, $content);
|
}, $content);
|
||||||
} else {
|
} else {
|
||||||
$this->names[$name] = Timer::after(intval($content->getTickTime() * 1000), function ($content) {
|
$this->names[$name] = Timer::after(intval($content->getTickTime() * 1000), function ($content) {
|
||||||
$content->execute($this);
|
var_dump(Timer::class);
|
||||||
|
// $content->execute($this);
|
||||||
}, $content);
|
}, $content);
|
||||||
}
|
}
|
||||||
var_dump($this->names);
|
var_dump($this->names);
|
||||||
|
|||||||
Reference in New Issue
Block a user