summaryrefslogtreecommitdiff
path: root/threadtest.lua
blob: 456862948307bd3ed6e75ef957e65f74ea059d79 (plain)
1
2
3
4
5
6
7
8
9
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