#pragma once #include #include #include namespace NCron { struct IHandle { virtual ~IHandle(); }; using TJob = std::function; using IHandlePtr = TAutoPtr; IHandlePtr StartPeriodicJob(TJob job); IHandlePtr StartPeriodicJob(TJob job, TDuration interval); IHandlePtr StartPeriodicJob(TJob job, TDuration interval, const TString& threadName); }