From 009eb7d43d9582856c275ad3b16f7e3ff94209cc Mon Sep 17 00:00:00 2001 From: amelia squires Date: Wed, 16 Apr 2025 13:09:46 -0500 Subject: merge thingy --- tests/old/t.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/old/t.lua (limited to 'tests/old/t.lua') diff --git a/tests/old/t.lua b/tests/old/t.lua new file mode 100644 index 0000000..09ee15d --- /dev/null +++ b/tests/old/t.lua @@ -0,0 +1,15 @@ +a = require "lullaby" + +b = coroutine.create(function() + os.execute("sleep 2") + print("co") +end) + +c = a.thread.async(function(res, req) + coroutine.resume(b) +end) + +os.execute("sleep 0.5") +print("owo") + +c:await() -- cgit v1.2.3