Skip to content

Commit 3487a3a

Browse files
committed
Job
1 parent da39b97 commit 3487a3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Snippets/Run a Job in the Background and Stream Output to Host.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ $Job = Start-ThreadJob -ScriptBlock {
44
ForEach-Object { Start-Sleep -ms 200; $_ } |
55
oss | Write-Host
66
} -StreamingHost $Host
7+
Get-Job $Job

0 commit comments

Comments
 (0)