VOX
A little voxel engine
Loading...
Searching...
No Matches
Future.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "tasks.hpp"
4#include <future>
5
6namespace task
7{
8
9template <typename T>
10class Future : public std::future<T>
11{
12public:
15 Future(const Future &) = delete;
16 Future & operator=(const Future &) = delete;
17 Future(Future &&) = default;
18 Future & operator=(Future &&) = default;
19
23 void cancel();
24private:
25};
26}
Definition: Future.hpp:11
void cancel()
will try to cancel the taskFlow
Future(const Future &)=delete
Future & operator=(const Future &)=delete
Future & operator=(Future &&)=default
Future(Future &&)=default
Definition: Executor.cpp:5