MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / callback

Function callback

tools/python-3.11.9-amd64/Lib/asyncio/tasks.py:926–934  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

924 future = concurrent.futures.Future()
925
926 def callback():
927 try:
928 futures._chain_future(ensure_future(coro, loop=loop), future)
929 except (SystemExit, KeyboardInterrupt):
930 raise
931 except BaseException as exc:
932 if future.set_running_or_notify_cancel():
933 future.set_exception(exc)
934 raise
935
936 loop.call_soon_threadsafe(callback)
937 return future

Callers 12

_registerMethod · 0.70
_pollMethod · 0.70
_do_waitMethod · 0.70
_do_waitpidMethod · 0.70
add_child_handlerMethod · 0.70
_do_waitpid_allMethod · 0.70
instateMethod · 0.50
_invoke_callbacksMethod · 0.50
call_callbacksMethod · 0.50
test_sf1651235Method · 0.50

Calls 3

ensure_futureFunction · 0.85
set_exceptionMethod · 0.45

Tested by 3

test_sf1651235Method · 0.40