lua-users home
lua-l archive

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


> I know it is not that hard to add a "scheduler:run()" at the end of a main
> script, but I would like the main thread to give up control before reaching
> the end of the script:

If you run the entire script as the body of a coroutine, it can yield
at any point.
wes