@camunda8/sdk
    Preparing search index...

    Interface PollingOperationOptionsWithoutPredicate<T>

    interface PollingOperationOptionsWithoutPredicate<
        T extends { items: unknown[] },
    > {
        interval?: number;
        operation: () => Promise<T>;
        predicate?: (result: T) => boolean;
        timeout?: number;
    }

    Type Parameters

    • T extends { items: unknown[] }

    Hierarchy (View Summary)

    Index

    Properties

    interval?: number

    how often to poll in ms - defaults to 1000

    operation: () => Promise<T>
    predicate?: (result: T) => boolean

    predicate to check if the result is valid - optional when T has items array

    timeout?: number

    when to timeout - defaults to 30000