Source2Toolkit
Core api

IToolkitScheduler

IToolkitScheduler

IToolkitScheduler

NextFrame(task)

Executes a task on the next frame.

Parameters
  • task std::function<void()>&& — Callback function

Timer* AddTimer(interval, callback, flags)

Adds a timer.

Parameters
  • interval float — Time in seconds between executions
  • callback TimerCallback — Function to execute
  • flags int — Timer behavior flags

KillTimer(timer)

Removes a timer.

Parameters
  • timer Timer* — Timer instance

On this page