A class responsible for executing data-related tasks.
- add - accepts a task as an argument. Returns an object describing the added task.
- getFutureResult< T > - returns an object from which the result of the task, provided as a result of type T, can be obtained in the future.
- getResult< T > - returns the result of the task of a certain type. Computes it if it is not yet calculated.
- executeAll - executes all scheduled tasks.
- Callable object
- Arguments are guaranteed to be CopyConstructible
- The return value is arbitrary, guaranteed to be CopyConstructible
- Number of arguments no more than 2
It is prohibited to use the standard library, except for containers and smart pointers.
Google-tests are connected to the project.