SharedComponentPoolComponent.getConsumerCount method
SharedComponentPoolComponent › getConsumerCount
Returns how many acquisitions currently hold the component shared under a key, pending ones included.Signature:
getConsumerCount(key: TKey): numberParameters:
| Parameter | Type | Description |
|---|---|---|
| key | TKey | The resource key. |
Returns: number — The number of consumers, 0 when the key has no shared component.