10 lines
139 B
C++
10 lines
139 B
C++
|
#pragma once
|
||
|
|
||
|
template<typename T>
|
||
|
class Future
|
||
|
{
|
||
|
public:
|
||
|
virtual ~Future() = default;
|
||
|
virtual bool poll() = 0;
|
||
|
virtual T& get() = 0;
|
||
|
};
|