sortiva/include/Future.hpp

10 lines
139 B
C++
Raw Normal View History

2025-01-11 04:30:15 +01:00
#pragma once
template<typename T>
class Future
{
public:
virtual ~Future() = default;
virtual bool poll() = 0;
virtual T& get() = 0;
};