All library functions no longer require self

This commit is contained in:
2025-06-28 05:58:29 +10:00
parent ccae0046fb
commit 27c40c3244
9 changed files with 57 additions and 68 deletions

View File

@@ -1,10 +1,3 @@
-- include task functions in the global scope
local task = require("lb:task")
function sleep(ms)
return task:sleep(ms)
end
function spawn(f, ...)
return task:spawn(f, ...)
end
sleep = task.sleep
spawn = task.spawn