summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-10-02 22:24:29 (GMT)
committerGitHub <noreply@github.com>2022-10-02 22:24:29 (GMT)
commit72d445a22e4fe59f11f090762f2517a60e164f40 (patch)
treeb286124a6414ede411276222e7261f32a4eba6c6
parent5ee8344aa29d3ecbebcdb1fe32ac6bb5f5e2dda3 (diff)
downloadcpython-72d445a22e4fe59f11f090762f2517a60e164f40.zip
cpython-72d445a22e4fe59f11f090762f2517a60e164f40.tar.gz
cpython-72d445a22e4fe59f11f090762f2517a60e164f40.tar.bz2
GH-85447: Clarify docs about awaiting future multiple times (GH-97738)
(cherry picked from commit 9151bbefea3fb932eb6aa6ddb22d64b83f8149c7) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
-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 412304a..70cec9b 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