We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67759cd commit ce4eeb2Copy full SHA for ce4eeb2
pymongo/lock.py
@@ -84,7 +84,7 @@ def _release_locks() -> None:
84
async def _async_cond_wait(condition: Condition, timeout: Optional[float]) -> bool:
85
fut = asyncio.ensure_future(condition.wait())
86
try:
87
- return await wait_for(fut, timeout)
+ return await wait_for(asyncio.shield(fut), timeout)
88
except asyncio.TimeoutError:
89
await fut
90
return False
0 commit comments