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

Method threadMain

Lib/test/test_asyncio/test_windows_events.py:306–309  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

304 # still has pending operation at deallocation, the process may crash" error
305 stop = threading.Event()
306 def threadMain():
307 while not stop.is_set():
308 self.loop.call_soon_threadsafe(lambda: None)
309 time.sleep(0.01)
310 thr = threading.Thread(target=threadMain)
311
312 # In 10 60-second runs of this test prior to the fix:

Callers

nothing calls this directly

Calls 3

is_setMethod · 0.45
call_soon_threadsafeMethod · 0.45
sleepMethod · 0.45

Tested by

no test coverage detected