Agenda - v6.2.3
    Preparing search index...

    Interface DrainResult

    Result of the drain() operation

    interface DrainResult {
        aborted: boolean;
        completed: number;
        running: number;
        timedOut: boolean;
    }
    Index

    Properties

    aborted: boolean

    Whether the drain finished because the signal was aborted

    completed: number

    Number of jobs that completed during the drain

    running: number

    Number of jobs still running when drain finished (only non-zero if timeout was hit or signal was aborted)

    timedOut: boolean

    Whether the drain finished because the timeout was reached