lean2/tests/lua/threads/th1.lua
Leonardo de Moura 69b41eae70 feat(lua): add support for multiple execution threads in the Lua API
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-11 16:25:17 -08:00

12 lines
137 B
Lua

f = Const("f")
a = Const("a")
S = State()
T = thread(S, [[
t = ...
g = Const("g")
return g(t)
]], f(a))
r = T:wait()
print(r)