0.0.1 • Published 10 months ago

@rbxts/try v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

rbx-try

Exposes a constructor function createTry that creates a function that:

Calls the given function and returns the result. If the function yields or throws an error, the thread is closed and an error is thrown. Regardless of the outcome, the finally function is called to clean up any resources.