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

Function drive_outside_any_task

tests/sqlite/test_async_contention.py:206–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204 outcome: asyncio.Future[BaseException] = loop.create_future()
205
206 def drive_outside_any_task() -> None:
207 try:
208 lock.acquire_write().send(None)
209 except RuntimeError as error:
210 outcome.set_result(error)
211
212 loop.call_soon(drive_outside_any_task)
213 error = await asyncio.wait_for(outcome, TASK_WAIT)

Callers

nothing calls this directly

Calls 1

acquire_writeMethod · 0.45

Tested by

no test coverage detected