aboutsummaryrefslogtreecommitdiff
path: root/tests/thread.lua
blob: 8b7de883f662159c227e8d2067b8c58037a8dee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
llby = require "lullaby"

llby.thread.async(function(res, rej)
  print("hi")
  a = llby.crypto.sha512()
  a:update("hi")
  b = a + "meow"
  print((b + "hi"):final())
  print((a:update("hi")):final())
  print((b + "hi"):final())
end)

os.execute("sleep 1")