Skip to content

Commit 3ba1248

Browse files
authored
Update PipelineStopToken description and example
1 parent c99a063 commit 3ba1248

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

reference/7.6/Microsoft.PowerShell.Core/About/about_Functions_Advanced.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ Advanced functions differ from compiled cmdlets in the following ways:
7171

7272
## PipelineStopToken
7373

74-
Beginning with PowerShell 7.6, `$PSCmdlet` includes the `PipelineStopToken`
75-
property allowing access a [CancellationToken][07] tied to the PowerShell stop
76-
event source. The token is triggered when the PowerShell pipeline receives a
77-
request to stop. Use it with a .NET method that accepts a `CancellationToken`
78-
overload to exit the method when requested rather than waiting until the method
79-
returns.
80-
81-
In the following example the function is calling `HttpClient.GetStringAsync`
82-
that can take a while to respond when the network is slow or there is a lot of
74+
Beginning with PowerShell 7.6-preview.4, `$PSCmdlet` includes the
75+
`PipelineStopToken` property allowing access a [CancellationToken][07] tied to
76+
the PowerShell stop event source. The token is triggered when the PowerShell
77+
pipeline receives a request to stop. Use it with a .NET method that accepts a
78+
`CancellationToken` overload to exit the method when requested rather than
79+
waiting until the method returns.
80+
81+
In the following example, the function is calling `HttpClient.GetStringAsync`,
82+
which can take time to respond when the network is slow or there is a lot of
8383
data being returned.
8484

8585
```powershell

0 commit comments

Comments
 (0)