modify
This commit is contained in:
@@ -120,8 +120,8 @@ class CrontabProcess extends Process
|
|||||||
Timer::clear($this->names[$name]);
|
Timer::clear($this->names[$name]);
|
||||||
}
|
}
|
||||||
$callback = function () use ($content) {
|
$callback = function () use ($content) {
|
||||||
var_dump('executes');
|
var_dump('executes', Timer::stats());
|
||||||
$content->execute($this);
|
// $content->execute($this);
|
||||||
};
|
};
|
||||||
$runTicker = [$content->getTickTime() * 1000, $callback];
|
$runTicker = [$content->getTickTime() * 1000, $callback];
|
||||||
if ($content->isLoop()) {
|
if ($content->isLoop()) {
|
||||||
@@ -129,7 +129,7 @@ class CrontabProcess extends Process
|
|||||||
} else {
|
} else {
|
||||||
$this->names[$name] = Timer::after(...$runTicker);
|
$this->names[$name] = Timer::after(...$runTicker);
|
||||||
}
|
}
|
||||||
var_dump($this->names, Timer::stats());
|
var_dump($this->names);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user