js-util

Home > rc-js-util > AReferenceCounted

AReferenceCounted class

Provides a way to handle cleanup of manually managed resources where there is not a single owner. NB The object is pre-claimed (ref count 1) on creation.

Signature:

export declare abstract class AReferenceCounted implements IReferenceCounted, IOnFree 

Implements: IReferenceCounted, IOnFree

Methods

Method Modifiers Description
claim()   Call when the object is received.
getIsDestroyed()    
onFree()    
release()   Call when done with the object.