diff options
| author | ame <[email protected]> | 2024-05-03 13:40:55 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-05-03 13:40:55 -0500 |
| commit | a571dd1ac9fc4d46e0bbc95a3ab88f52ee37b1a1 (patch) | |
| tree | dbaffb5e488e0d0cf7f2fcb598ee2db1515aab05 /tests/h.lua | |
| parent | 81b85b557c308ff743b7b83f2b823e508eef54eb (diff) | |
starting threads and deep copy metatables
Diffstat (limited to 'tests/h.lua')
| -rw-r--r-- | tests/h.lua | 16 |
1 files changed, 16 insertions, 0 deletions
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 |
