From 83520e8eb6254c5e3eaa9c0ad04563e09d06ff55 Mon Sep 17 00:00:00 2001 From: ame Date: Mon, 29 Jan 2024 12:31:10 -0600 Subject: owo whats this? working code??? --- tests/s.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests/s.lua') diff --git a/tests/s.lua b/tests/s.lua index 5adc783..a543ff0 100644 --- a/tests/s.lua +++ b/tests/s.lua @@ -1,13 +1,15 @@ require "llib" -function sleep (a) +function _G.sleep (a) local sec = tonumber(os.clock() + a); while (os.clock() < sec) do end end -for i=1,500 do +for i=1,50 do llib.net.spawn(function() - --sleep(1) + local sec = tonumber(os.clock() + 1); + while (os.clock() < sec) do + end print("hi") end) end -- cgit v1.2.3