Skip to content

Commit 6b34b62

Browse files
committed
Specify what happens in ensure_future with a context of None.
1 parent 78f05ce commit 6b34b62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/library/asyncio-future.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Future Functions
5151

5252
An optional keyword-only *context* argument allows specifying a
5353
custom :class:`contextvars.Context` to use when creating a new task.
54+
A copy of the current context is used when no *context* is provided.
5455

5556
.. important::
5657

0 commit comments

Comments
 (0)