You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
asyncio.run documentation does not mention its return value #82441
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2019-09-25.09:23:16.404>created_at=<Date2019-09-23.15:40:12.846>labels= ['type-feature', '3.7', 'docs', 'expert-asyncio']
title='asyncio.run documentation does not mention its return value'updated_at=<Date2019-09-25.09:23:16.404>user='https://github.com/edd07'
Looking at the source, its clear it returns the passed coroutine's value via loop.run_until_complete, but the documentation or the provided example do not make it clear.
Activity
edd07 commentedon Sep 23, 2019
The documentation for asyncio.run (https://docs.python.org/3/library/asyncio-task.html#asyncio.run) does not mention the function's return value or lack of one.
Looking at the source, its clear it returns the passed coroutine's value via loop.run_until_complete, but the documentation or the provided example do not make it clear.
eamanu commentedon Sep 23, 2019
So, I think that will return the Future's return, isn't? I will propose a PR for this
miss-islington commentedon Sep 25, 2019
New changeset 17deb16 by Miss Islington (bot) (Emmanuel Arias) in branch 'master':
bpo-38260: Add Docs on asyncio.run (GH-16337)
17deb16
miss-islington commentedon Sep 25, 2019
New changeset d366694 by Miss Islington (bot) in branch '3.7':
bpo-38260: Add Docs on asyncio.run (GH-16337)
d366694
miss-islington commentedon Sep 25, 2019
New changeset 4633355 by Miss Islington (bot) in branch '3.8':
bpo-38260: Add Docs on asyncio.run (GH-16337)
4633355