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.
50 lines (24 loc) • 732 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [ReferenceCounter](./rc-js-util.referencecounter.md) > [(constructor)](./rc-js-util.referencecounter._constructor_.md)
## ReferenceCounter.(constructor)
Constructs a new instance of the `ReferenceCounter` class
**Signature:**
```typescript
constructor(onZeroReference?: (key: TKey) => void);
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
onZeroReference
</td><td>
(key: TKey) => void
</td><td>
_(Optional)_
</td></tr>
</tbody></table>