Commit 2866e03 1 parent c3b595e commit 2866e03 Copy full SHA for 2866e03
File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -527,6 +527,8 @@ Running Tasks Concurrently
527
527
and there is no running event loop.
528
528
529
529
530
+ .. _eager-task-factory :
531
+
530
532
Eager Task Factory
531
533
==================
532
534
@@ -1174,8 +1176,17 @@ Task Object
1174
1176
1175
1177
Return the coroutine object wrapped by the :class: `Task `.
1176
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
+
1177
1184
.. versionadded :: 3.8
1178
1185
1186
+ .. versionchanged :: 3.12
1187
+
1188
+ Newly added eager task execution means result may be ``None ``.
1189
+
1179
1190
.. method :: get_context()
1180
1191
1181
1192
Return the :class: `contextvars.Context ` object
You can’t perform that action at this time.
0 commit comments