Browse Source

[tasks] Clarify Loop.stop interaction with before_loop

pull/9018/head
rdrescher909 3 years ago
committed by GitHub
parent
commit
01915fbc09
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      discord/ext/tasks/__init__.py

4
discord/ext/tasks/__init__.py

@ -415,7 +415,7 @@ class Loop(Generic[LF]):
use :meth:`cancel` instead. use :meth:`cancel` instead.
.. versionchanged:: 2.0 .. 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 .. versionadded:: 1.2
""" """
@ -545,7 +545,7 @@ class Loop(Generic[LF]):
The coroutine must take no arguments (except ``self`` in a class context). The coroutine must take no arguments (except ``self`` in a class context).
.. versionchanged:: 2.0 .. 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 Parameters
------------ ------------

Loading…
Cancel
Save