API
ParallelOptions.CancellationToken
Associates cooperative cancellation with the loop.
Formal Syntax & Structure
csharp syntaxcsharp
new ParallelOptions { CancellationToken = stop.Token }Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.new ParallelOptions { CancellationToken = stop.Token }