mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
GH-85447: Clarify docs about awaiting future multiple times (GH-97738)
(cherry picked from commit 9151bbefea
)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
This commit is contained in:
parent
10818aa833
commit
c8bdf339d7
1 changed files with 2 additions and 1 deletions
|
@ -85,7 +85,8 @@ Future Object
|
||||||
|
|
||||||
Future is an :term:`awaitable` object. Coroutines can await on
|
Future is an :term:`awaitable` object. Coroutines can await on
|
||||||
Future objects until they either have a result or an exception
|
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
|
Typically Futures are used to enable low-level
|
||||||
callback-based code (e.g. in protocols implemented using asyncio
|
callback-based code (e.g. in protocols implemented using asyncio
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue