Skip to content

Add RFC for hosting API bounded waits#409

Draft
SufficientDaikon wants to merge 1 commit intoPowerShell:masterfrom
SufficientDaikon:rfc-hosting-api-bounded-waits
Draft

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

Conversation

@SufficientDaikon
Copy link

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/

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