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.

71 lines (33 loc) 1.25 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; [ReferenceCountedStrategy](./rc-js-util.referencecountedstrategy.md) ## ReferenceCountedStrategy class The recommended lifecycle strategy. This strategy only adds debug checks for leaking objects; you must unlink objects from their owners once they are finished with them. **Signature:** ```typescript export declare class ReferenceCountedStrategy implements ILifecycleStrategy ``` **Implements:** [ILifecycleStrategy](./rc-js-util.ilifecyclestrategy.md) ## Methods <table><thead><tr><th> Method </th><th> Modifiers </th><th> Description </th></tr></thead> <tbody><tr><td> [createNode(owner)](./rc-js-util.referencecountedstrategy.createnode.md) </td><td> </td><td> </td></tr> <tr><td> [onManagedObjectCreated(object)](./rc-js-util.referencecountedstrategy.onmanagedobjectcreated.md) </td><td> </td><td> </td></tr> <tr><td> [onSharedPointerCreated(sharedPtr, metadata, protectedView)](./rc-js-util.referencecountedstrategy.onsharedpointercreated.md) </td><td> </td><td> </td></tr> </tbody></table>