Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ wrap_async_callback
Function
wrap_async_callback
lite/pylite/megenginelite/network.py:469–476 ·
view source on GitHub ↗
(func)
Source
from the content-addressed store, hash-verified
467
468
469
def
wrap_async_callback(func):
470
global wrapper
471
472
@CFUNCTYPE(c_int)
473
def
wrapper():
474
return
func()
475
476
return
wrapper
477
478
479
def
start_finish_callback(func):
Callers
1
async_with_callback
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected