Home > rc-js-util > DebugSharedObjectChecks > registerWithCleanup
Calls register on the shared object but also registers the associated cleanup on release too.
Signature:
static registerWithCleanup(instance: IDebugAllocateListener & ISharedObject, protectedView: IDebugProtectedView, nameOfInstance: string): IDebugProtectedView;
| Parameter | Type | Description |
|---|---|---|
| instance | IDebugAllocateListener & ISharedObject | |
| protectedView | IDebugProtectedView | |
| nameOfInstance | string |
Returns: