ixfx
    Preparing search index...

    Type Alias RetryTask<T>

    type RetryTask<T> = {
        probe: (attempts: number) => Promise<Result<T, any>>;
    }

    Type Parameters

    • T
    Index

    Properties

    Properties

    probe: (attempts: number) => Promise<Result<T, any>>

    If probe returns {success:true} task is considered complete and retrying stops

    Type declaration

      • (attempts: number): Promise<Result<T, any>>
      • Parameters

        • attempts: number

        Returns Promise<Result<T, any>>