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

Function start_acquire

tests/async_lock/test_executor.py:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 tasks: Queue[asyncio.Task[AsyncAcquireReturnProxy]],
56) -> None:
57 async def start_acquire() -> None:
58 tasks.put(
59 _CancellationObservedTask(
60 lock.acquire(),
61 cancellation_seen,
62 loop=asyncio.get_running_loop(),
63 )
64 )
65 assert await asyncio.to_thread(hook_started.wait, 5)
66
67 asyncio.run(start_acquire())
68

Callers 1

_run_unawaited_acquireFunction · 0.85

Calls 2

acquireMethod · 0.45

Tested by

no test coverage detected