Sorry for little offtop,
is there any advantages to use threading vs taskMgr? i mean on low level taskMgr must be using same threading or async right?
The task manager is a higher-level construct for scheduling tasks, which can operate with threads or without threads.
In general, it is easier and more powerful to use tasks, even in conjunction with threads, for small bits of work that need to be done. But in some cases, if your workload doesn’t fit the task model very well, you can use plain threads, such as in the case where you’re running a continuous loop that is occasionally waking up to process some data and then going back to sleep.
Because threading is complicated and you can’t really get the maximum benefits out of threads with Python (discounting the experimental no-GIL stuff for now), it is easier to use tasks in conjunction with coroutines to do asynchronous work.
Thanks, you confirmed my suspicions about this topic.