MCPcopy 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
469def wrap_async_callback(func):
470 global wrapper
471
472 @CFUNCTYPE(c_int)
473 def wrapper():
474 return func()
475
476 return wrapper
477
478
479def start_finish_callback(func):

Callers 1

async_with_callbackMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected