lua-users home
lua-l archive

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

On Thu, Jul 30, 2020 at 9:08 PM Dibyendu Majumdar wrote:
You just need to ensure that the close
logic is also invoked by the GC

If I understand your words correctly, you suggest the following:
if a coroutine is exiting due to error,
all the "defer" statements will be executed by GC when collecting the coroutine?