MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / set_loop

Method set_loop

src/web/task_manager.py:82–84  ·  view source on GitHub ↗

设置事件循环(在 FastAPI 启动时调用)

(self, loop: asyncio.AbstractEventLoop)

Source from the content-addressed store, hash-verified

80 self._loop: Optional[asyncio.AbstractEventLoop] = None
81
82 def set_loop(self, loop: asyncio.AbstractEventLoop):
83 """设置事件循环(在 FastAPI 启动时调用)"""
84 self._loop = loop
85
86 def get_loop(self) -> Optional[asyncio.AbstractEventLoop]:
87 """获取事件循环"""

Callers 4

lifespanFunction · 0.80
run_registration_taskFunction · 0.80
_schedule_async_jobFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected