MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / func

Method func

test/asynchronous/test_locks.py:311–317  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

309 cond = _async_create_condition(_async_create_lock())
310
311 async def func():
312 nonlocal raised
313 async with cond:
314 with self.assertRaises(asyncio.CancelledError) as err:
315 await cond.wait_for(lambda: wake)
316 raised = err.exception
317 raise raised
318
319 task = asyncio.create_task(func())
320 await asyncio.sleep(0)

Callers

nothing calls this directly

Calls 1

wait_forMethod · 0.80

Tested by

no test coverage detected