We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68e4de5 commit 2e4895cCopy full SHA for 2e4895c
discord/ext/tasks/__init__.py
@@ -200,7 +200,7 @@ async def run_with_semaphore():
200
),
201
name=f"pycord-loop-{self.coro.__name__}-{self._current_loop}",
202
)
203
- task.add_done_callback(lambda t: self._tasks.discard(t))
+ task.add_done_callback(self._tasks.discard)
204
self._tasks.add(task)
205
206
_current_loop_ctx.reset(token)
0 commit comments