@mudssky/jsutils
    Preparing search index...

    Interface PollingOptions<T>

    interface PollingOptions<T = any> {
        errorAction?: (error: unknown) => void;
        immediate?: boolean;
        interval?: number;
        maxExecutions?: number;
        maxRetries?: number;
        onProgress?: (result: T) => void;
        quitOnError?: boolean;
        stopCondition?: (result: T) => boolean;
        task: () => Promise<T>;
    }

    Type Parameters

    • T = any
    Index

    Properties

    errorAction?: (error: unknown) => void
    immediate?: boolean
    interval?: number
    maxExecutions?: number
    maxRetries?: number
    onProgress?: (result: T) => void
    quitOnError?: boolean
    stopCondition?: (result: T) => boolean
    task: () => Promise<T>