lua-users home
lua-l archive

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


> - lua_resetthread is hard to find if you start by looking at
> coroutine.close. Can we rename it lua_closethread or rename
> coroutine.close to coroutine.reset?

A Lua thread can be reused after lua_resetthread.
A coroutine cannot be reused after coroutine.close.
Hence the different names.