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.

93 lines (43 loc) 1.59 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; [IManagedResourceNode](./rc-js-util.imanagedresourcenode.md) ## IManagedResourceNode interface Represents a resource that must be manually released. Each node (excluding the root node, provided by the wrapper) should have one or more owners. When the owner is finished with the resource, they should unlink it; in the case that all owners have dropped the reference, the resource is destroyed. You can create a node using [ILifecycleStrategy.createNode()](./rc-js-util.ilifecyclestrategy.createnode.md) (found on [IEmscriptenWrapper](./rc-js-util.iemscriptenwrapper.md)<!-- -->. **Signature:** ```typescript export interface IManagedResourceNode ``` ## Properties <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> [onFreeChannel](./rc-js-util.imanagedresourcenode.onfreechannel.md) </td><td> `readonly` </td><td> [IBroadcastChannel](./rc-js-util.ibroadcastchannel.md)<!-- -->&lt;"onFree", \[\]&gt; </td><td> </td></tr> </tbody></table> ## Methods <table><thead><tr><th> Method </th><th> Description </th></tr></thead> <tbody><tr><td> [getIsDestroyed()](./rc-js-util.imanagedresourcenode.getisdestroyed.md) </td><td> </td></tr> <tr><td> [getLinked()](./rc-js-util.imanagedresourcenode.getlinked.md) </td><td> </td></tr> </tbody></table>