Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add RFC for hosting API bounded waits#409

Open
SufficientDaikon wants to merge 1 commit into
PowerShell:masterPowerShell/PowerShell-RFC:masterfrom
SufficientDaikon:rfc-hosting-api-bounded-waitsSufficientDaikon/PowerShell-RFC:rfc-hosting-api-bounded-waitsCopy head branch name to clipboard
Open

Add RFC for hosting API bounded waits#409
SufficientDaikon wants to merge 1 commit into
PowerShell:masterPowerShell/PowerShell-RFC:masterfrom
SufficientDaikon:rfc-hosting-api-bounded-waitsSufficientDaikon/PowerShell-RFC:rfc-hosting-api-bounded-waitsCopy head branch name to clipboard

Conversation

@SufficientDaikon

@SufficientDaikon SufficientDaikon commented Mar 13, 2026

Copy link
Copy Markdown

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.