Skip to content

Commit

Permalink
add job detail
Browse files Browse the repository at this point in the history
  • Loading branch information
KirkMunro committed Jun 25, 2019
1 parent 09a3b10 commit af54447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1-Draft/RFCNNNN-Optional-Features.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,4 @@ Start-Job {
} | Receive-Job -Wait
```

The result of that command shows that the version of PowerShell where the job was run was Core, not Desktop, yet the job ran anyway despite the `#requires` statement. This may be a bug. If it is, and if that bug is corrected, then you could use #requires to enable/disable features, but regardless it would still be preferable (and more intuitive) for jobs to "inherit" the current optional feature configuration when they are invoked.
The result of that command shows that the version of PowerShell where the job was run was Core, not Desktop, yet the job ran anyway despite the `#requires` statement. This may be a bug. If it is, and if that bug is corrected, then you could use #requires to enable/disable features, but regardless it would still be preferable (and more intuitive) for jobs to "inherit" the current optional feature configuration when they are invoked. This includes jobs launched with `Start-Job`, `Start-ThreadJob`, the `&` background operator, parallelized `foreach` statements or `ForEach-Object` commands, or the generic `-AsJob` parameter.

0 comments on commit af54447

Please sign in to comment.