Skip to content

SharedComponentPoolComponent.getConsumerCount method

SharedComponentPoolComponent › getConsumerCount

Returns how many acquisitions currently hold the component shared under a key, pending ones included.

Signature:

getConsumerCount(key: TKey): number

Parameters:

ParameterTypeDescription
keyTKeyThe resource key.

Returns: number — The number of consumers, 0 when the key has no shared component.