RamblingCookieMonster / Invoke-Parallel

Speed up PowerShell with simplified multithreading
MIT License
384 stars 88 forks source link

Addresses Runspacepool Variable Scope Creep #65

Closed dustinross4 closed 5 years ago

dustinross4 commented 5 years ago

https://learn-powershell.net/2018/01/28/dealing-with-runspacepool-variable-scope-creep-in-powershell/

the link explains more thoroughly, but essentially sometimes values will carry over from parallel invocations

this change sets UseLocalScope to $True