lua-users home
lua-l archive

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

Exactly. Start your script with lua_resume() rather than lua_call(). 

On Sep 12, 2011, at 1:36 PM, Wesley Smith wrote:

>> 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