mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
[tasks] Clarify Loop.stop interaction with before_loop
This commit is contained in:
parent
efd28fc1e0
commit
01915fbc09
@ -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
|
||||
------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user