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 07236d5 commit 019ed9dCopy full SHA for 019ed9d
Lib/asyncio/tasks.py
@@ -415,7 +415,7 @@ async def wait_for(fut, timeout):
415
416
await _cancel_and_wait(fut, loop=loop)
417
try:
418
- fut.result()
+ return fut.result()
419
except exceptions.CancelledError as exc:
420
raise exceptions.TimeoutError() from exc
421
else:
@@ -455,7 +455,7 @@ async def wait_for(fut, timeout):
455
# exception, we should re-raise it
456
# See https://bugs.python.org/issue40607
457
458
459
460
461
0 commit comments