geocore/base/task_loop.hpp
2019-09-16 17:54:22 +03:00

17 lines
259 B
C++

#pragma once
#include <functional>
namespace base
{
class TaskLoop
{
public:
using Task = std::function<void()>;
virtual ~TaskLoop() = default;
virtual bool Push(Task && task) = 0;
virtual bool Push(Task const & task) = 0;
};
} // namespace base