[tasks] Clarify Loop.stop interaction with before_loop

This commit is contained in:
rdrescher909 2022-10-19 21:36:05 -04:00 committed by GitHub
parent efd28fc1e0
commit 01915fbc09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -415,7 +415,7 @@ class Loop(Generic[LF]):
use :meth:`cancel` instead.
.. versionchanged:: 2.0
Calling this method in :meth:`before_loop` will stop the first iteration from running.
Calling this method in :meth:`before_loop` will stop the loop before the initial iteration is run.
.. versionadded:: 1.2
"""
@ -545,7 +545,7 @@ class Loop(Generic[LF]):
The coroutine must take no arguments (except ``self`` in a class context).
.. versionchanged:: 2.0
Calling :meth:`stop` in this coroutine will stop the initial iteration from running.
Calling :meth:`stop` in this coroutine will stop the loop before the initial iteration is run.
Parameters
------------