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.

64 lines (30 loc) 1.11 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; [SharedObjectCleanup](./rc-js-util.sharedobjectcleanup.md) &gt; [createWithCleanup](./rc-js-util.sharedobjectcleanup.createwithcleanup.md) ## SharedObjectCleanup.createWithCleanup() method **Signature:** ```typescript static createWithCleanup(sharedObject: IManagedObject & IPointer, options: InstanceType<typeof SharedObjectCleanup.Options>): SharedObjectCleanup; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> sharedObject </td><td> [IManagedObject](./rc-js-util.imanagedobject.md) &amp; [IPointer](./rc-js-util.ipointer.md) </td><td> </td></tr> <tr><td> options </td><td> InstanceType&lt;typeof [SharedObjectCleanup.Options](./rc-js-util.sharedobjectcleanup.options.md)<!-- -->&gt; </td><td> </td></tr> </tbody></table> **Returns:** [SharedObjectCleanup](./rc-js-util.sharedobjectcleanup.md)