Implement task sleep function

This commit is contained in:
2025-06-26 18:47:43 +10:00
parent 9b7dbcc141
commit 01f459ffaf
3 changed files with 11 additions and 3 deletions

View File

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