fix(runtime): 收口调度与事件异步任务生命周期 (#6415)

This commit is contained in:
InfinityPacer
2026-08-23 17:17:59 +08:00
committed by GitHub
parent e7bfc9dd43
commit e1d7918297
18 changed files with 1937 additions and 214 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ def init_scheduler():
def stop_scheduler():
"""
停止定时器;生命周期事件循环中返回有限等待的兼容协程。
停止定时器;生命周期事件循环中返回等待的收口协程。
"""
scheduler = Scheduler()
try:
@@ -24,7 +24,7 @@ def stop_scheduler():
except RuntimeError:
scheduler.stop()
return None
return scheduler.async_stop()
return scheduler.stop_async()
def restart_scheduler():