Go to the documentation of this file.
23 virtual void async(std::function<
void()> func) = 0;
24 virtual void setTimeout(std::function<
void()> func,
int ms,
25 std::optional<std::string> timerId = std::nullopt) = 0;
26 virtual void setInterval(std::function<
void()> func,
int ms,
27 std::optional<std::string> timerId = std::nullopt) = 0;
30 virtual void cancel(std::string timerId) = 0;
const std::string headFailureCancelledErrorMsg
Definition: jobinterface.hpp:17
virtual void setInterval(std::function< void()> func, int ms, std::optional< std::string > timerId=std::nullopt)=0
const int headFailureCancelledStatusCode
Definition: jobinterface.hpp:18
Definition: location.hpp:10
virtual ~JobInterface()=default
virtual void submit(BaseJob job, std::function< void(Response)> callback)=0
makes an async fetch.
virtual void cancel(std::string timerId)=0
cancels all pending timers with timerId
const std::string headFailureCancelledErrorCode
Definition: jobinterface.hpp:16
Definition: jobinterface.hpp:20
Definition: basejob.hpp:76
virtual void async(std::function< void()> func)=0
virtual void setTimeout(std::function< void()> func, int ms, std::optional< std::string > timerId=std::nullopt)=0
Definition: basejob.hpp:50