- Extending Qt Creator Manual
- TaskTree
- When
- Extending Qt Creator Manual 19.0.1

# QtTaskTree::When Class

class QtTaskTree::When

An element delaying the execution of a body until barrier advance. More...

Header: | `#include <qbarriertask.h>`

Note: All functions in this class are reentrant.

## Detailed Description

When is used to delay the execution of a Do body until related QStoredBarrier is advanced or until QCustomTask's signal is emitted. It is used in conjunction with Do element like: `When () >> Do {}`.

See also Do.