Skip to content

Commit 18dc180

Browse files
authored
Update __init__.py
Signed-off-by: Lumouille <[email protected]>
1 parent fec336a commit 18dc180

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

discord/ext/tasks/__init__.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -819,14 +819,10 @@ def loop(
819819
loop: :class:`asyncio.AbstractEventLoop`
820820
The loop to use to register the task, if not given
821821
defaults to :func:`asyncio.get_event_loop`.
822-
823822
overlap: Union[:class:`bool`, :class:`int`]
824-
Controls whether to allow overlapping executions of the task loop.
825-
826-
- If set to :class:`False` (default), the next iteration waits until the previous finishes.
827-
- If set to :class:`True`, overlapping executions are allowed with no limit.
828-
- If set to an :class:`int`, allows up to that many overlapping executions at once.
829-
823+
Controls whether overlapping executions of the task loop are allowed.
824+
Set to False (default) to run iterations one at a time, True for unlimited overlap, or an int to cap the number of concurrent runs.
825+
830826
.. versionadded:: 2.7
831827
832828
Raises

0 commit comments

Comments
 (0)