Files
iw5-gsc-utils/src/component/scheduler.hpp
Federico Cecchetto b1a29ded7d Add httpGet function
2021-06-20 20:04:36 +02:00

22 lines
550 B
C++

#pragma once
namespace scheduler
{
enum pipeline
{
server,
async,
count,
};
static const bool cond_continue = false;
static const bool cond_end = true;
void schedule(const std::function<bool()>& callback, pipeline type = pipeline::server,
std::chrono::milliseconds delay = 0ms);
void loop(const std::function<void()>& callback, pipeline type = pipeline::server,
std::chrono::milliseconds delay = 0ms);
void once(const std::function<void()>& callback, pipeline type = pipeline::server,
std::chrono::milliseconds delay = 0ms);
}