Async / waiting
Do stuff later without blocking
Summary
Where to get cron
-- don't overwrite it if it's already defined in the global scope. Or do, up to you.
Cron = Cron or require('External/Cron.lua')How to use cron
Performance impact
Good example:
local callback = function()
-- do a little dance, make a little love
end
Cron.Every(0.1, callback)Bad example:
Passing function arguments
Cron functions
Delay
Timer
Pausing and resuming a timer
Last updated