Skip to content

Docs: a timed-out stream comes back $null; what ForceStoppedCount counts - #61

Merged
HalRiveria-Bot merged 2 commits into
mainfrom
docs/stream-timeout-forcestopped
Nov 17, 2026
Merged

HalRiveria-Bot merged 2 commits into
mainfrom
docs/stream-timeout-forcestopped

Conversation

@HalRiveria-Bot

Copy link
Copy Markdown
Collaborator

Two places where the docs didn't match what the kit does:

  • A stream timeout loses that stream's output. The README said StreamTimedOut means the output "may be incomplete". In fact, when a leftover child holds the pipe past the stream timeout, the stream the read gave up on comes back $null: everything the program wrote there is missing, not cut short. A build step whose helper outlives it loses its whole log. The README and Complete-PkProcess's help now say so, and that a StreamError stream comes back $null too.
  • ForceStoppedCount had no meaning where it's listed. It's how many workers an abort stopped waiting for; one stuck in a .NET call keeps running (as Limits explains). Said in the README and in Invoke-PkRunspaceJobs' help.

Docs and help comments only; no code changes.

Testing

  • Behavior checked against the code: Complete-PkProcess only takes a read task that ran to completion, and ForceStoppedCount is only set by the abort drain.
  • Get-Help shows the new text for both functions.
  • Full harness passes in fresh processes on Windows PowerShell 5.1 and PowerShell 7 (505 assertions each).

🤖 Generated with Claude Code

HalRiveria and others added 2 commits November 17, 2026 16:19
The README said StreamTimedOut means the output "may be incomplete", but
the stream the read gave up on comes back empty. ForceStoppedCount was
listed without saying what it counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HalRiveria-Bot
HalRiveria-Bot merged commit f643b90 into main Nov 17, 2026
2 checks passed
@HalRiveria-Bot
HalRiveria-Bot deleted the docs/stream-timeout-forcestopped branch November 17, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants