Home > rc-js-util > AReferenceCounted
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
Method | Modifiers | Description |
---|---|---|
claim() | Call when the object is received. | |
getIsDestroyed() | ||
onFree() | ||
release() | Call when done with the object. |