Skip to content

Commit

Permalink
GH-85447: Clarify docs about awaiting future multiple times (GH-97738)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9151bbe)

Co-authored-by: Kumar Aditya <[email protected]>
  • Loading branch information
miss-islington and kumaraditya303 authored Oct 2, 2022
1 parent 011260b commit b26fb3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/library/asyncio-future.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b26fb3c

Please sign in to comment.