Type alias RetryResult<R>

RetryResult<R>: {
    ok: R;
} | {
    err: unknown;
}

Represents the result of a retry operation.

The object will have one of two properties: ok or err, but never both.

If the operation was:

  • successful, ok will be defined with the result of the function call.
  • unsuccessful, err will be defined with the last error thrown.

Type Parameters

  • R

Type declaration

  • ok: R

Type declaration

  • err: unknown

Generated using TypeDoc