()
| 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) |
nothing calls this directly
no test coverage detected