MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / run

Method run

astrbot/core/platform/platform.py:122–124  ·  view source on GitHub ↗

得到一个平台的运行实例,需要返回一个协程对象。

(self)

Source from the content-addressed store, hash-verified

120
121 @abc.abstractmethod
122 def run(self) -> Coroutine[Any, Any, None]:
123 """得到一个平台的运行实例,需要返回一个协程对象。"""
124 raise NotImplementedError
125
126 async def terminate(self) -> None:
127 """终止一个平台的运行实例。"""

Callers 1

_start_platform_taskMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected