js-util

Home > rc-js-util > DebugSharedObjectChecks > registerWithCleanup

DebugSharedObjectChecks.registerWithCleanup() method

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;

Parameters

Parameter Type Description
instance IDebugAllocateListener & ISharedObject  
protectedView IDebugProtectedView  
nameOfInstance string  

Returns:

IDebugProtectedView