rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
9 lines • 451 B
TypeScript
/**
* @public
* Any shared objects allocated in the callback will be released on return. By default, these will be released on throw too.
* In such event the error will be rethrown after releasing any shared objects.
*
* Error handling can be disabled by setting the build flag `WASM_DISABLE_STACK_LIFECYCLE_TRY_CATCH`.
*/
export declare function blockScope<TRet>(callback: () => TRet): TRet;
//# sourceMappingURL=block-scoped-lifecycle.d.ts.map