From aeba6ec617447143dcb27e0b60e3463252e24346 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 7 Aug 2018 14:09:39 +0800 Subject: *update --- threadtest.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 threadtest.lua (limited to 'threadtest.lua') 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 -- cgit v1.1-26-g67d0