True Myth / task / stopRetrying
Function: stopRetrying()
stopRetrying(
message
,cause?
):StopRetrying
Produces the “sentinel” Error
subclass StopRetrying
, for use as a return value from withRetries
.
Parameters
message
string
The message to attach to the StopRetrying
instance.
cause?
unknown
The previous cause (often another Error
) that resulted in stopping retries.