blob: 1472c896aabe2df28f03fb9b043ee55ca5837307 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
require "llib"
local thread_a = llib.thread.async(function (res)
--os.execute("sleep 1")
--print((_G.ll + "hi"):final())
res:res(_G.llib.crypto.md5("meow"))
print("after")
end)
local thread_b = llib.thread.async(function (res)
--os.execute("sleep 1")
--print((_G.ll + "hi"):final())
res:res(_G.llib.crypto.sha512("meow"))
print("after")
end)
print(thread_a:await())
print(thread_b:await())
|