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

Method run_tasks

Lib/test/test_capi/test_misc.py:1390–1397  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1388
1389 done = False
1390 def run_tasks():
1391 while not queue_empty():
1392 if done:
1393 return
1394 time.sleep(0.01)
1395 # Give the worker a chance to handle any remaining pending calls.
1396 while not done:
1397 time.sleep(0.01)
1398
1399 # Start the workers and wait for them to finish.
1400 worker_threads = [threading.Thread(target=run_tasks)

Callers

nothing calls this directly

Calls 2

queue_emptyFunction · 0.85
sleepMethod · 0.45

Tested by

no test coverage detected