PaulHigin / PSThreadJob

A PowerShell module for running concurrent jobs based on threads rather than processes
MIT License
180 stars 18 forks source link

fix information stream #16

Closed ajansveld closed 6 years ago

ajansveld commented 6 years ago

Attempt to fix the information stream while keeping compatibility with older PowerShell versions. Should fix issues #4 and #11.

ajansveld commented 6 years ago

Ok, I understand. I will close this pull request and maintain my own fork. Ultimately my goal is to maintain full compatibility with Start-Job (including ensuring that Write-Host never pollutes the output stream) and I have no interest in maintaining compatibility with pre-v5 versions of PowerShell.

PaulHigin commented 6 years ago

Ok. The Information stream is difficult for down level compatibility, but it would be easy to add a new switch to Start-ThreadJob, something like -IgnoreWriteHost. Or maybe make it opt in with -MergeWriteHostToOutput (slightly breaking change).