@mikeyt23/node-cli-utils
    Preparing search index...

    Interface ParallelItemResult<InputType, OutputType>

    The result from an individual operation during a call to runParallel.

    interface ParallelItemResult<InputType, OutputType> {
        inputItem: InputType;
        outputResult?: OutputType;
        rejectedReason?: unknown;
        skipped: boolean;
        success: boolean;
    }

    Type Parameters

    • InputType
    • OutputType
    Index

    Properties

    inputItem: InputType

    The original item passed to the operation function.

    outputResult?: OutputType

    The result property will be undefined if the promise is rejected when operating on the item.

    rejectedReason?: unknown

    The value of the promise rejection (often an Error object, but can technically be anything).

    skipped: boolean

    Items can be skipped if the RunParallelOptions.shouldSkipFunc is used and evaluated to true for an item, or if RunParallelOptions.onlyFirstN was passed and the item was not in range.

    success: boolean

    Set to true if not skipped, the promise wasn't rejected and the success evaluation function returned true for the output, false otherwise.