summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-10-02 22:16:51 (GMT)
committerGitHub <noreply@github.com>2022-10-02 22:16:51 (GMT)
commit9151bbefea3fb932eb6aa6ddb22d64b83f8149c7 (patch)
tree8558d493cb425723cc57bbad478407edb66107a2
parentcac2e8a51fe6412b7bc864274a60927ececfd833 (diff)
downloadcpython-9151bbefea3fb932eb6aa6ddb22d64b83f8149c7.zip
cpython-9151bbefea3fb932eb6aa6ddb22d64b83f8149c7.tar.gz
cpython-9151bbefea3fb932eb6aa6ddb22d64b83f8149c7.tar.bz2
GH-85447: Clarify docs about awaiting future multiple times (#97738)
-rw-r--r--Doc/library/asyncio-future.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/asyncio-future.rst b/Doc/library/asyncio-future.rst
index 99a5d3a..8e60877 100644
--- a/Doc/library/asyncio-future.rst
+++ b/Doc/library/asyncio-future.rst
@@ -85,7 +85,8 @@ Future Object
Future is an :term:`awaitable` object. Coroutines can await on
Future objects until they either have a result or an exception
- set, or until they are cancelled.
+ set, or until they are cancelled. A Future can be awaited multiple
+ times and the result is same.
Typically Futures are used to enable low-level
callback-based code (e.g. in protocols implemented using asyncio