()
| 93 | started, gate = threading.Event(), threading.Event() |
| 94 | |
| 95 | def park() -> None: |
| 96 | started.set() |
| 97 | gate.wait(TASK_WAIT) |
| 98 | |
| 99 | # The pool's only thread ran the acquire; parking it there forces the release onto a second worker. |
| 100 | parked = asyncio.get_running_loop().run_in_executor(executor, park) |