Receive-Job -Wait is a convenient way of receiving job output (almost) as it is being produced, but it waits indefinitely for the job to complete.
Having Receive-Job -Wait -Timeout <secs> would be handy to enforce a timeout.
(Wait-Job already has a -Timeout parameter, but it doesn't support receiving job output)
Environment data
Written as of beta.9
Receive-Job -Waitis a convenient way of receiving job output (almost) as it is being produced, but it waits indefinitely for the job to complete.Having
Receive-Job -Wait -Timeout <secs>would be handy to enforce a timeout.(
Wait-Jobalready has a-Timeoutparameter, but it doesn't support receiving job output)Environment data
Written as of beta.9