42 std::function<
void()> Callback;
46 int64_t GetCurrentTimeMs()
const;
One-shot delays and repeating timers, run on the game thread.
Subscription NextTick(std::function< void()> callback)
Subscription Repeat(int64_t intervalMs, std::function< void()> callback)
Subscription EveryFrame(std::function< void()> callback)
Subscription Delay(int64_t delayMs, std::function< void()> callback)
Owns one registration and releases it on destruction.
static std::string ReadFile(const std::filesystem::path &path)