We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3b595e commit 2866e03Copy full SHA for 2866e03
Doc/library/asyncio-task.rst
@@ -527,6 +527,8 @@ Running Tasks Concurrently
527
and there is no running event loop.
528
529
530
+.. _eager-task-factory:
531
+
532
Eager Task Factory
533
==================
534
@@ -1174,8 +1176,17 @@ Task Object
1174
1176
1175
1177
Return the coroutine object wrapped by the :class:`Task`.
1178
1179
+ .. note::
1180
1181
+ This will return ``None`` for Tasks which have already
1182
+ completed eagerly. See the :ref:`Eager Task Factory <eager-task-factory>`.
1183
1184
.. versionadded:: 3.8
1185
1186
+ .. versionchanged:: 3.12
1187
1188
+ Newly added eager task execution means result may be ``None``.
1189
1190
.. method:: get_context()
1191
1192
Return the :class:`contextvars.Context` object
0 commit comments