ixfx
    Preparing search index...

    Type Alias RetryResult<V>

    Result of backoff

    type RetryResult<V> = {
        attempts: number;
        elapsed: number;
        message?: string;
        success: boolean;
        value: V | undefined;
    }

    Type Parameters

    • V
    Index

    Properties

    attempts: number

    Number of times callback was attempted

    elapsed: number

    Total elapsed time since beginning of call to retry

    message?: string

    Message describing outcome.

    If retry was aborted, message will be abort reason.

    success: boolean

    True if callback function was invoked once where it returned true

    value: V | undefined

    Value returned by succeeding function, or undefined if it failed