MCPcopy Index your code
hub / github.com/python/cpython / _call_soon

Method _call_soon

Lib/asyncio/base_events.py:851–856  ·  view source on GitHub ↗
(self, callback, args, context)

Source from the content-addressed store, hash-verified

849 f'got {callback!r}')
850
851 def _call_soon(self, callback, args, context):
852 handle = events.Handle(callback, args, self, context)
853 if handle._source_traceback:
854 del handle._source_traceback[-1]
855 self._ready.append(handle)
856 return handle
857
858 def _check_thread(self):
859 """Check that the current thread is the thread running the event loop.

Callers 1

call_soonMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected