Skip to content

Implement ForEach-Object -Parallel feature#10229

Merged
adityapatwardhan merged 27 commits intoPowerShell:masterfrom
PaulHigin:foreach-parallel-B
Aug 13, 2019
Merged

Implement ForEach-Object -Parallel feature#10229
adityapatwardhan merged 27 commits intoPowerShell:masterfrom
PaulHigin:foreach-parallel-B

Conversation

@PaulHigin
Copy link
Copy Markdown
Contributor

PR Summary

This PR is the implementation for the ForEach-Object -Parallel feature based on RFC: PowerShell/PowerShell-RFC#194

PR Context

This new parameter set runs the ForEach-Object script blocks in parallel, for each piped input, on separate threads subject to a ThrottleLimit restriction. It can run synchronously where the cmdlet call does not return until all piped input has been processed. Or it can run asynchronously and return a job object immediately.

This is an experimental feature and must be explicitly enabled with the 'PSForEachObjectParallel' name.

PR Checklist

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Engine Indicates that a PR should be marked as an engine change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants