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

Function park

tests/sqlite/test_async_executor.py:95–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected