diff options
author | chai <chaifix@163.com> | 2018-08-07 14:09:39 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-08-07 14:09:39 +0800 |
commit | aeba6ec617447143dcb27e0b60e3463252e24346 (patch) | |
tree | 51282da00eb8f85e724cdc899f70e429a8addba4 /threadtest.lua | |
parent | d557097244f512acfdc2174383820180af9df01e (diff) |
*update
Diffstat (limited to 'threadtest.lua')
-rw-r--r-- | threadtest.lua | 10 |
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 |