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 a28bb4c commit 2d8a26bCopy full SHA for 2d8a26b
internal_filesystem/lib/mpos/task_manager.py
@@ -36,13 +36,19 @@ def start(cls):
36
def stop(cls):
37
cls.keep_running = False
38
39
+ @classmethod
40
+ def enable(cls):
41
+ cls.disabled = False
42
+
43
@classmethod
44
def disable(cls):
45
cls.disabled = True
46
47
48
def create_task(cls, coroutine):
- cls.task_list.append(asyncio.create_task(coroutine))
49
+ task = asyncio.create_task(coroutine)
50
+ cls.task_list.append(task)
51
+ return task
52
53
54
def list_tasks(cls):
0 commit comments