Skip to content

Instantly share code, notes, and snippets.

@chriskuech
Created June 7, 2019 06:17
Show Gist options
  • Save chriskuech/749315f7ad919d72be4f31f55364a8fb to your computer and use it in GitHub Desktop.
Save chriskuech/749315f7ad919d72be4f31f55364a8fb to your computer and use it in GitHub Desktop.
$job = Start-Job $action # `$action` will be executed asynchronously
Invoke-NextCommand # will be called before `$action` has completed
$job | Wait-Job -Timeout 60 | Receive-Job
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment