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
commitf648ac9db35f49f3dbd7373cc230f680c55cc04a (patch)
tree2a9fafd40359419d36504b55e6041a9fdda23bc6 /tests/t.lua
parent1cc24fda87c3e8df90a5ea2d526ce39adf4a7648 (diff)
parentfe33c0e979ebfc41c3eb9f561589f0d5d8810aaf (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()