GH-85447: Clarify docs about awaiting future multiple times (#97738)

This commit is contained in:
Kumar Aditya 2022-10-03 03:46:51 +05:30 committed by GitHub
parent cac2e8a51f
commit 9151bbefea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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