close-stack

A stack-based closer for Lua to-be-closed values

$ luarocks install close-stack

A Lua stack-based closer and callback caller, equivalent to Python's
ExitStack, but for Lua to-be-closed values. Manages a dynamic list of
closeable resources and closes them in reverse order on scope exit,
manual close, or error unwinding.

Versions

1.0.1-111 hours ago1 download
1.0.0-111 hours ago1 download

Dependencies

lua >= 5.4

Manifests