create

fun create(maxInterval: TimeFrame, errorBaseInterval: TimeFrame?): CooldownHelper?

Creates a new CooldownHelper from the given intervals

Parameters

maxInterval

The maximum amount of time for a cooldown to last.

errorBaseInterval

The base interval to extend the cooldown period by on each consecutive failure. Note - not providing this parameter will always return null from this method.