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

Server & Client

Enqueues a low-priority task into the deferred queue, processed after main tasks subject to budget constraints.

Parameters

fn*Callback function to execute in the deferred phase.
optsOptional task options.

Returns

TaskHandleHandle object for the deferred task.

Related Types

Owl.Util.Scheduler:Defer(function()
    print("Flushing background cleanup work")
end)