UNPKG

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.

67 lines (32 loc) 1.1 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [ICleanupRegistry](./rc-js-util.icleanupregistry.md) ## ICleanupRegistry interface Represents a store that allows adding, removing, and executing cleanup callbacks. **Signature:** ```typescript export interface ICleanupRegistry ``` ## Methods <table><thead><tr><th> Method </th><th> Description </th></tr></thead> <tbody><tr><td> [executeCleanups()](./rc-js-util.icleanupregistry.executecleanups.md) </td><td> Execute the cleanup code, then delete the cleanup callbacks (i.e. reset this object, ready to use again). </td></tr> <tr><td> [listCleanups()](./rc-js-util.icleanupregistry.listcleanups.md) </td><td> </td></tr> <tr><td> [registerCleanup(cleanup)](./rc-js-util.icleanupregistry.registercleanup.md) </td><td> </td></tr> <tr><td> [unregisterCleanup(cleanup)](./rc-js-util.icleanupregistry.unregistercleanup.md) </td><td> </td></tr> </tbody></table>