lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello,

When the use of threads is required, what's the best option I have?
I found:
1 - www.cs.princeton.edu/~diego/professional/luathread/
2 - lua51pthread.luaforge.net/
3 - luaforge.net/projects/luatask/
I chose LuaTask because of its simplicity and straightforward use.

Also, I couldn't find an active LuaTask forum or list, sorry for posting here.

When a thread raises an error, how am I supposed to notice it?
I can use task.isrunning() but where's the error message?
In the simple example below I can never see the message "hello error".

-- t1.lua
require 'task'
task.create't2.lua'

-- t2.lua
error'hello error'

Thanks.