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 b0384ec commit 4dc7593Copy full SHA for 4dc7593
pydis_core/utils/scheduling.py
@@ -10,7 +10,7 @@
10
11
from pydis_core.utils import logging
12
13
-TASKS = set[asyncio.Task]
+_background_tasks = set[asyncio.Task]
14
15
16
class Scheduler:
@@ -241,8 +241,8 @@ def create_task(
241
else:
242
task = asyncio.create_task(coro, **kwargs)
243
244
- TASKS.add(task)
245
- task.add_done_callback(TASKS.discard)
+ _background_tasks.add(task)
+ task.add_done_callback(_background_tasks.discard)
246
task.add_done_callback(partial(_log_task_exception, suppressed_exceptions=suppressed_exceptions))
247
return task
248
0 commit comments