Owl.Util.Scheduler:NextFrame(fn: TaskFn, opts?: TaskOptions): TaskHandle

Server & Client

Schedules an unbudgeted high-priority task to run once at the start of the very next Heartbeat frame.

Parameters

fn*Callback function to execute on the next frame.
optsOptional task configuration.

Returns

TaskHandleHandle object for the scheduled task.

Related Types

Owl.Util.Scheduler:NextFrame(function()
    print("Executing immediately on next Heartbeat")
end)