From: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Date: Sun, 2 Oct 2022 22:16:51 +0000 (+0530) Subject: GH-85447: Clarify docs about awaiting future multiple times (#97738) X-Git-Tag: v3.12.0a1~311 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9151bbefea3fb932eb6aa6ddb22d64b83f8149c7;p=thirdparty%2FPython%2Fcpython.git GH-85447: Clarify docs about awaiting future multiple times (#97738) --- diff --git a/Doc/library/asyncio-future.rst b/Doc/library/asyncio-future.rst index 99a5d3a8287b..8e60877f0e4c 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