aboutsummaryrefslogtreecommitdiff
path: root/discord/ext
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-04-11 08:19:32 -0400
committerRapptz <[email protected]>2019-04-11 08:19:32 -0400
commit10bc93934876c3302bd2f9941f48b300c288be6e (patch)
tree33d63a594bf1ab030be1f3075699c2cac6035f15 /discord/ext
parent[tasks] Add a new background helper 'tasks' extension. (diff)
downloaddiscord.py-10bc93934876c3302bd2f9941f48b300c288be6e.tar.xz
discord.py-10bc93934876c3302bd2f9941f48b300c288be6e.zip
[tasks] Rename Loop.run to Loop.start to avoid blocking connotations
Diffstat (limited to 'discord/ext')
-rw-r--r--discord/ext/tasks/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/ext/tasks/__init__.py b/discord/ext/tasks/__init__.py
index 623513d1..1c5c791a 100644
--- a/discord/ext/tasks/__init__.py
+++ b/discord/ext/tasks/__init__.py
@@ -75,8 +75,8 @@ class Loop:
return self._current_loop
- def run(self, *args, **kwargs):
- r"""Runs the internal task in the event loop.
+ def start(self, *args, **kwargs):
+ r"""Starts the internal task in the event loop.
Parameters
------------
@@ -93,7 +93,7 @@ class Loop:
Returns
---------
:class:`asyncio.Task`
- The task that has been registered.
+ The task that has been created.
"""
if self._task is not None: