MCPcopy Create free account
hub / github.com/tox-dev/filelock / park

Function park

tests/soft/read_write/test_async_executor.py:120–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected