aboutsummaryrefslogtreecommitdiff
path: root/tests/t.lua
diff options
context:
space:
mode:
authorame <[email protected]>2024-09-30 02:17:37 -0500
committerame <[email protected]>2024-09-30 02:17:37 -0500
commitc18a2ac9469ddc7488834a81e49150ebb5506ed4 (patch)
tree2a9fafd40359419d36504b55e6041a9fdda23bc6 /tests/t.lua
parent2a7f5c95a5406b6de215dbc24a733e29d609d20f (diff)
parente29d3ea86551380ace8e2c86c9f1f63e901941e1 (diff)
what
Diffstat (limited to 'tests/t.lua')
-rw-r--r--tests/t.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/t.lua b/tests/t.lua
new file mode 100644
index 0000000..09ee15d
--- /dev/null
+++ b/tests/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()