1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00
RedMew/utils/test/steps.lua
James Gillham e9f35319df third pass
2020-09-19 15:56:50 +01:00

18 lines
311 B
Lua

local Public = {}
Public.__index = Public
function Public.new()
return setmetatable({}, Public)
end
function Public.timeout(self, delay, func)
self[#self + 1] = {func = func, delay = delay or 1}
return self
end
function Public.next(self, func)
return self:timeout(1, func)
end
return Public