From b4016193115b8828dc3a62f2e47728ae1c17b8ad Mon Sep 17 00:00:00 2001 From: zehkira <9485872-zehkira@users.noreply.gitlab.com> Date: Tue, 25 Nov 2025 12:17:47 +0100 Subject: [PATCH] Use task type names for thread names --- source/monophony/asynchronous.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/monophony/asynchronous.py b/source/monophony/asynchronous.py index 0f26d8c..d94478b 100644 --- a/source/monophony/asynchronous.py +++ b/source/monophony/asynchronous.py @@ -29,7 +29,10 @@ class Task(MemoryDebugger): self.result = None self._canceled = False self._thread = threading.Thread( - target=self.__perform, args=self.__args, kwargs=self.__kwargs + target=self.__perform, + args=self.__args, + kwargs=self.__kwargs, + name=self.__class__.__qualname__ ) self._thread.daemon = True @@ -59,4 +62,3 @@ class Task(MemoryDebugger): def start(self): if not self.is_running(): self._thread.start() - -- GitLab