pinterval
    Preparing search index...

    Function pipeline

    • Executes a sequence of predicates asynchronously with a specified timeout between each execution.

      The function takes an array of predicates, either synchronous or asynchronous, and executes them in sequence. A timeout value specifies the delay between each function execution, and an optional start mode determines whether the interval should begin immediately or after the first delay.

      Parameters

      • predicates: (PipelinePredicate | PipelinePredicateAsync)[]

        An array of functions (either synchronous or asynchronous) to execute in sequence.

      • timeout: Duration

        The duration of the delay between each predicate execution.

      • Optionalstart: StartMode = 'immediate'

        Specifies whether the execution interval should start immediately or after the first delay.

      Returns Promise<any>

      A promise that resolves with the result of the last predicate in the sequence, or resolves immediately if the predicates array is empty.