ExecuteWithDelay

The ExecuteWithDelay function asynchronously executes the supplied callback after the supplied delay is over.

Parameters

#TypeInformation
1integerDelay, in milliseconds, to wait before executing the supplied callback
2functionThe callback to execute after the supplied delay is over

Example

ExecuteWithDelay(2000, function()
    print("Executed asynchronously after a 2 second delay\n")
end)