12#ifndef ROOT_TTaskGroup
13#define ROOT_TTaskGroup
19namespace Experimental {
43 void Run(
const std::function<
void(
void)> &closure);
A class to manage the asynchronous execution of work items.
void ExecuteInIsolation(const std::function< void(void)> &operation)
void Run(const std::function< void(void)> &closure)
Add to the group an item of work which will be ran asynchronously.
void Wait()
Wait until all submitted items of work are completed.
void Cancel()
Cancel all submitted tasks immediately.
TTaskGroup(const TTaskGroup &)=delete
TTaskGroup & operator=(TTaskGroup &&other)
std::atomic< bool > fCanRun
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.