diff options
| author | Rapptz <[email protected]> | 2019-04-11 08:19:32 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-04-11 08:19:32 -0400 |
| commit | 10bc93934876c3302bd2f9941f48b300c288be6e (patch) | |
| tree | 33d63a594bf1ab030be1f3075699c2cac6035f15 /discord | |
| parent | [tasks] Add a new background helper 'tasks' extension. (diff) | |
| download | discord.py-10bc93934876c3302bd2f9941f48b300c288be6e.tar.xz discord.py-10bc93934876c3302bd2f9941f48b300c288be6e.zip | |
[tasks] Rename Loop.run to Loop.start to avoid blocking connotations
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/ext/tasks/__init__.py | 6 |
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: |