summaryrefslogtreecommitdiff
path: root/threadtest.lua
diff options
context:
space:
mode:
Diffstat (limited to 'threadtest.lua')
-rw-r--r--threadtest.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/threadtest.lua b/threadtest.lua
new file mode 100644
index 0000000..4568629
--- /dev/null
+++ b/threadtest.lua
@@ -0,0 +1,10 @@
+require("global")
+local channels = require("channels")
+
+local t = jin.thread.getThread()
+local str = t:demand(channels.PROGRESS)
+print(str)
+t:send(3, "back data")
+while true do
+ jin.time.sleep(1)
+end \ No newline at end of file