A custom Error subclass which acts as a “sentinel”: when you
return it either as the top-level return value from the callback for
withRetries or the rejection reason for a Task
produces by withRetries, the function will stop retrying immediately.
You can neither construct this class directly nor subclass it. Instead, use
the stopRetrying helper function to construct it.
A custom
Error
subclass which acts as a “sentinel”: when you return it either as the top-level return value from the callback forwithRetries
or the rejection reason for aTask
produces bywithRetries
, the function will stop retrying immediately.You can neither construct this class directly nor subclass it. Instead, use the
stopRetrying
helper function to construct it.