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

Method run_in_thread

Lib/test/test_asyncio/test_events.py:341–343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

339 self.loop.stop()
340
341 def run_in_thread():
342 self.loop.call_soon_threadsafe(callback, 'hello')
343 lock.release()
344
345 lock.acquire()
346 t = threading.Thread(target=run_in_thread)

Callers

nothing calls this directly

Calls 11

assertIsInstanceMethod · 0.80
assertFalseMethod · 0.80
assertTrueMethod · 0.80
call_soon_threadsafeMethod · 0.45
releaseMethod · 0.45
waitMethod · 0.45
cancelledMethod · 0.45
is_setMethod · 0.45
cancelMethod · 0.45
set_resultMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected