]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-85447: Clarify docs about awaiting future multiple times (GH-97738)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 2 Oct 2022 22:24:29 +0000 (15:24 -0700)
committerGitHub <noreply@github.com>
Sun, 2 Oct 2022 22:24:29 +0000 (15:24 -0700)
(cherry picked from commit 9151bbefea3fb932eb6aa6ddb22d64b83f8149c7)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Doc/library/asyncio-future.rst

index 412304ab6148889981b4c1a0ddf0759ec3833c38..70cec9b2f90248de57549df14732a03165a8e413 100644 (file)
@@ -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