QtTaskTree::Forever Class
class QtTaskTree::ForeverInfinite loop of subtasks. More...
Header: | #include <qtasktree.h> |
Inherits: | QtTaskTree::ExecutableItem |
Note: All functions in this class are reentrant.
Public Functions
Forever(const QtTaskTree::GroupItems &children) | |
Forever(std::initializer_list<QtTaskTree::GroupItem> children) |
Detailed Description
The tasks passed to the constructor will repeat until some of them causes the body's workflow policy to stop executing. By default, the body will be repeated until some task finishes with an error.
Refer to Do documentation for more information about placing group handlers and Storage as a direct children of the Forever body.
See also For and ForeverIterator.
Member Function Documentation
[explicit]
Forever::Forever(const QtTaskTree::GroupItems &children)
Constructs an infinite loop that executes children.
The following construction:
const Group recipe = Forever { task1, task2 };
is an equivalent to:
const Group recipe = For (ForeverIterator()) >> Do { task1, task2 };
[explicit]
Forever::Forever(std::initializer_list<QtTaskTree::GroupItem> children)
Constructs an infinite loop that executes children passed as initializer list.
This is an overloaded function.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.