MCPcopy Create free account
hub / github.com/wechaty/python-wechaty / shutdown

Function shutdown

src/wechaty/plugin.py:189–192  ·  view source on GitHub ↗

when trigger the shutdown, it will call sys.exit

(trigger: Callable[[], Coroutine[Any, Any, Any]])

Source from the content-addressed store, hash-verified

187
188
189async def shutdown(trigger: Callable[[], Coroutine[Any, Any, Any]]) -> None:
190 """when trigger the shutdown, it will call sys.exit"""
191 await trigger()
192 sys.exit(0)
193
194
195class WechatySchedulerMixin:

Callers 1

startMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected