ActiveListCooldownDurationCallback<T>
TYPE DEFINITION
Represents a callback function which is given all relevant cooldown duration data, and expects to be given back the number of milliseconds the content should be cooled down before it responds to user interaction again.
WARNING: do not return a negative number or zero in this callback as this results in a ActiveListCooldownDurationError. The action will still occur however, this means that the ActiveList is invalid when this happens.
Since 1.0.0
Signature
Parameters
data:
ActiveListCooldownDurationCallbackData<T>
An object containing all relevant cooldown data for which the callback function must determine the cooldown duration in number of milliseconds.
Returns
An object containing all relevant cooldown data for which the callback function must determine the cooldown duration in number of milliseconds.
Returns
The time in milliseconds of the duration of the cooldown for the given CooldownCallbackData.