Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ _run_exit_handlers
Function
_run_exit_handlers
imperative/python/megengine/__init__.py:29–32 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
27
28
29
def
_run_exit_handlers():
30
for
handler in reversed(_exit_handlers):
31
handler()
32
_exit_handlers.clear()
33
34
35
atexit.register(_run_exit_handlers)
Callers
1
_exit
Function · 0.85
Calls
2
handler
Function · 0.85
clear
Method · 0.45
Tested by
no test coverage detected