Skip to content

New features: Error handling / Golang-like defer

Latest
Compare
Choose a tag to compare
@townewgokgok townewgokgok released this 12 Apr 05:42
· 32 commits to master since this release

Error handling

Can handle errors just like normal functions.

See src/index.spec.ts

Golang-like defer

luacoro.defer works like Golang's defer.
Useful to clean up scene scoped resources.

Defer functions must be normal functions.
Not yieldable within them.

See src/index.spec.ts