[]
Provides support for LINQ queries with a CancellationToken.
public static IEnumerable<T> ThrowIfCancelled<T>(this IEnumerable<T> items, CancellationToken token)
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | items | The source sequence. |
| CancellationToken | token | A token to cancel enumeration. |
| Type | Description |
|---|---|
| IEnumerable<T> | A sequence that supports throwing if cancelled. |
| Name | Description |
|---|---|
| T | The type of elements in the sequence. |