From 618263f6f85d08bfd85d4f0376663aa1e2f58eac Mon Sep 17 00:00:00 2001 From: ame Date: Fri, 3 May 2024 13:40:55 -0500 Subject: starting threads and deep copy metatables --- tests/h.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/h.lua (limited to 'tests/h.lua') diff --git a/tests/h.lua b/tests/h.lua new file mode 100644 index 0000000..0a0cfdd --- /dev/null +++ b/tests/h.lua @@ -0,0 +1,16 @@ +require "llib" + +local th = llib.thread.async(function (res) + _G.llib.io.pprint(res) + _G.llib.io.pprint({aa=45}) + res:res(_G.llib.crypto.md5()) + print("after") +end) + +os.execute("sleep 1") + +print("out:") +a = th:res(); +print((a + "hi"):final()) + +while true do end \ No newline at end of file -- cgit v1.2.3