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;
27 std::optional<std::string> timerId = std::nullopt) = 0;
30 virtual void cancel(std::string timerId) = 0;
Definition: basejob.hpp:77
Definition: location.hpp:10
const std::string headFailureCancelledErrorMsg
Definition: jobinterface.hpp:17
const std::string headFailureCancelledErrorCode
Definition: jobinterface.hpp:16
const int headFailureCancelledStatusCode
Definition: jobinterface.hpp:18
Definition: jobinterface.hpp:21
virtual void async(std::function< void()> func)=0
virtual ~JobInterface()=default
virtual void submit(BaseJob job, std::function< void(Response)> callback)=0
makes an async fetch.
virtual void setTimeout(std::function< void()> func, int ms, std::optional< std::string > timerId=std::nullopt)=0
virtual void setInterval(std::function< void()> func, int ms, std::optional< std::string > timerId=std::nullopt)=0
virtual void cancel(std::string timerId)=0
cancels all pending timers with timerId
Definition: basejob.hpp:50