Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ParallelKit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# graceful Ctrl+C/window-close handling for Windows PowerShell 5.1 and
# PowerShell 7.
#
# Version 3.1 - https://github.com/HalRiveria/PowerShell-ParallelKit
# Version 3.2 - https://github.com/HalRiveria/PowerShell-ParallelKit
# Copyright (c) 2026 HalRiveria. MIT License: keep this notice with any copy;
# the full text is in LICENSE in the repository.
#
Expand Down Expand Up @@ -2688,7 +2688,7 @@ function Invoke-PkGracefulDrain {
foreach ($h in $localHandles) {
# BeginStop, not Stop: Stop() blocks until the pipeline
# actually unwinds, and a worker stuck in a .NET call never does.
try { $null = $h.PS.BeginStop($null, $null) } catch { }
try { $null = $h.PS.BeginStop($null, $null) } catch { } # one worker that can't be asked to stop mustn't keep the rest from being asked
}
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ What none of them do for you:

## Setup

Requires Windows, with Windows PowerShell 5.1 or PowerShell 7. Download `ParallelKit.ps1` from the [Releases page](https://github.com/HalRiveria/PowerShell-ParallelKit/releases) (this README describes version 3.1 and later), put it in your project, and dot-source it from your script:
Requires Windows, with Windows PowerShell 5.1 or PowerShell 7. Download `ParallelKit.ps1` from the [Releases page](https://github.com/HalRiveria/PowerShell-ParallelKit/releases) (this README describes version 3.2 and later), put it in your project, and dot-source it from your script:

```powershell
. "$PSScriptRoot\ParallelKit.ps1"
Expand Down
Loading