• Allows for invoking a callback and re exucting while re generating a new request identifier

    Returns

    Type Parameters

    • T

    Parameters

    • execCallback: ((requestId: string) => Promise<T>)
        • (requestId: string): Promise<T>
        • Parameters

          • requestId: string

          Returns Promise<T>

    • Optional errorCallback: ((error: any, requestId: string, isFinal: boolean) => void)
        • (error: any, requestId: string, isFinal: boolean): void
        • Parameters

          • error: any
          • requestId: string
          • isFinal: boolean

          Returns void

    • Optional opts: RetryTolerance

    Returns Promise<T & {
        requestId: string;
    } | RejectedNodePromises & {
        requestId: string;
    }>

Generated using TypeDoc