Skip to content

taskSupport does not propagate to result collections #152

@mernst-github

Description

@mernst-github

Operations on parallel collections do not propagate the taskSupport to the result.
This seems highly unintuitive.

For example, a fellow engineer recently changed code from
par.map(expensiveProcessing)
to
par.filter(isRelevant).map(expensiveProcessing)

losing the taskSupport on the way so that expensiveProcessing ended up being executed on the global EC which is not intended. Three different engineers (author, code reviewer and me) did not expect this.

Is this on purpose or a bug?

Some research in the library code suggests that there is an intention to set a non-default taskSupport on the result:

Not sure whether that makes sense or not, but my intuition would propagate in either case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions