mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-22 16:15:34 +08:00
fix multiple prompt timer bug
This commit is contained in:
@@ -19,6 +19,11 @@ class Timer
|
||||
return Framework::getInstance()->getDriver()->getEventLoop()->addTimer($ms, $callback);
|
||||
}
|
||||
|
||||
public static function del(int $timer_id): void
|
||||
{
|
||||
Framework::getInstance()->getDriver()->getEventLoop()->clearTimer($timer_id);
|
||||
}
|
||||
|
||||
public static function registerTick(Tick $v): void
|
||||
{
|
||||
if ($v->class !== '' && $v->method !== '') {
|
||||
|
||||
Reference in New Issue
Block a user