CooldownStore
Defined in: core/src/fallback.ts:130
Where a pool keeps its benches. A Map fits, and so does a WeakMap keyed
by providers, which lets a bench go when its provider does. get must
return the very object set was given: the probe is tracked on it.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
Methods
Section titled “Methods”delete()
Section titled “delete()”delete(candidate): unknown;Defined in: core/src/fallback.ts:133
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
candidate |
T |
Returns
Section titled “Returns”unknown
get(candidate): Cooldown | undefined;Defined in: core/src/fallback.ts:131
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
candidate |
T |
Returns
Section titled “Returns”Cooldown | undefined
set(candidate, cooldown): void;Defined in: core/src/fallback.ts:132
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
candidate |
T |
cooldown |
Cooldown |
Returns
Section titled “Returns”void