Skip to content

Add RFC for hosting API bounded waits#409

Open
SufficientDaikon wants to merge 1 commit into
PowerShell:masterfrom
SufficientDaikon:rfc-hosting-api-bounded-waits
Open

Add RFC for hosting API bounded waits#409
SufficientDaikon wants to merge 1 commit into
PowerShell:masterfrom
SufficientDaikon:rfc-hosting-api-bounded-waits

Conversation

@SufficientDaikon
Copy link
Copy Markdown

@SufficientDaikon SufficientDaikon commented Mar 13, 2026

This RFC proposes adding bounded-wait timeout support to the PowerShell hosting API — two new public API members:

  • PSInvocationSettings.Timeout (TimeSpan, default InfiniteTimeSpan)
  • PowerShell.Stop(TimeSpan timeout)

These allow C# host applications to enforce deadlines on script invocation and pipeline stop operations. The default InfiniteTimeSpan preserves all existing behavior — the feature is purely opt-in with zero overhead when not used.

Reference implementation: PowerShell/PowerShell#27027
Interactive docs: https://ps-bounded-wait-docs.pages.dev/


This change is Reviewable

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.

1 participant