PaulHigin / PSThreadJob

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

Start-ThreadJob should not validate ArgumentList is not null or empty #18

Closed jazzdelightsme closed 6 years ago

jazzdelightsme commented 6 years ago

The [ValidateNotNullOrEmpty()] attribute not only verifies that an object is not null, but if it is a collection, it validates that it contains no null entries.

But it is up to my job's ScriptBlock to decide if it wants null entries or not, not Start-ThreadJob.

IMO Start-ThreadJob should not even validate that the -ArgumentList is not null. Start-Job doesn't.