lua-users home
lua-l archive

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


I am trying to create two free running processes in parallel, like this:

lanes.gen(function() os.execute('sleep 10 && echo finished_sleeping') end)()
lanes.gen(function() os.execute('sleep 10 && echo finished_sleeping') end)()

This however takes 20 seconds. Why is that and what am I doing wrong?

Thijs