From 10bc93934876c3302bd2f9941f48b300c288be6e Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 11 Apr 2019 08:19:32 -0400 Subject: [tasks] Rename Loop.run to Loop.start to avoid blocking connotations --- discord/ext/tasks/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'discord/ext') 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: -- cgit v1.2.3