()
| 118 | started, gate = threading.Event(), threading.Event() |
| 119 | |
| 120 | def park() -> None: |
| 121 | started.set() |
| 122 | gate.wait(5) |
| 123 | |
| 124 | # Parking the first worker forces release onto another thread. |
| 125 | parked = asyncio.get_running_loop().run_in_executor(executor, park) |