Skip to content

Parallel.each does not pass index and list to the callback, just the value #3

@danielrentz

Description

@danielrentz

Documentation of Parallel.each says

The callback takes three arguments: the current element being processed, the index of the current element, and the input list.

but actually only the list value is passed, as can be seen in the signature

each<T1, T2>(list: T1[], action: {(value: T1): Promise}, concurrency?: number): Promise

Parallel.each should pass all three parameters, as Array.forEach does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions