We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cd33e3 commit edcd97eCopy full SHA for edcd97e
1 file changed
Doc/library/asyncio-task.rst
@@ -395,7 +395,7 @@ The ``async with`` statement will wait for all tasks in the group to finish.
395
While waiting, new tasks may still be added to the group
396
(for example, by passing ``tg`` into one of the coroutines
397
and calling ``tg.create_task()`` in that coroutine). There is also opportunity
398
-to short-circuit the entire task group with :meth:`cancel`, based on some condition.
+to short-circuit the entire task group with ``tg.cancel()``, based on some condition.
399
Once the last task has finished and the ``async with`` block is exited,
400
no new tasks may be added to the group.
401
0 commit comments