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.
46 lines (22 loc) • 1.06 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [DebugSharedObjectLifeCycleChecker](./rc-js-util.debugsharedobjectlifecyclechecker.md)
## DebugSharedObjectLifeCycleChecker class
Wrapper of [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/FinalizationRegistry](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry) for shared objects, useful for checking if the shared object was properly disposed. Available in debug contexts only.
**Signature:**
```typescript
export declare class DebugSharedObjectLifeCycleChecker
```
## Methods
<table><thead><tr><th>
Method
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[registerFinalizationCheck(sharedObject, metadata)](./rc-js-util.debugsharedobjectlifecyclechecker.registerfinalizationcheck.md)
</td><td>
</td><td>
</td></tr>
</tbody></table>