TaskTree
Qt Task Tree - generic solution for automatic management of asynchronous tasks (C++), by Jarek Kobus
TaskTree automatically manages a chain (or a tree) of asynchronous tasks of mixed types, including running processes, network queries, functions in separate threads, animations, timers, and so on... It's easily extensible with any other types of asynchronous tasks.
The recipe on how to create, run and manage the conglomerate of tasks is described in a declarative way in C++.
The recipes are enclosed in copyable value-type objects and may be run many times, or be part of more general recipes.
The TaskTree is broadly used in QtCreator, for executing Build / Deploy / Run configurations, Locator filter, Clang tool, VCS commands, Autotests, driving Axivion plugin's communication and much more...
The TaskTree will be included in Qt 6.11 as a new QtTaskTree module.
Notes from the presentation/discussion at Qt Contributors Summit 2023: TaskTree CS23
Notes from the presentation/discussion at Qt Contributors Summit 2024: QtCS2024 TaskTree
More Info
| Link | Additional Info |
|---|---|
| Introductory Blog | |
| YouTube video | Created by Łukasz Hampf (Somco Software). |
| Documentation | Ref docs: here. |
| Sources | |
| Autotests | Includes more than 250 test cases. |
| Example: Demo | Sources: here. Post: here. |
| Example: Traffic Light | Sources: here. Post: here. An alternative implementation of Traffic Light example using TaskTree. |
| Example: Image Scaling | Sources: here. Post: here. An alternative implementation of Image Scaling example using TaskTree. |
| Image Scalling diff | Difference in the implementation of the ImageScaling example using QFuture::then() and TaskTree. |
| Asset Downloader diff | Patch replacing the old implementation of the asset downloader with TaskTree employed. |
| Suggestions | |
| Presentation 2024 |

