[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Rendering.Tools.EnumerableExtension.ThrowIfCancelled

ThrowIfCancelled Method

ThrowIfCancelled<T>(IEnumerable<T>, CancellationToken)

Provides support for LINQ queries with a CancellationToken.

Declaration
public static IEnumerable<T> ThrowIfCancelled<T>(this IEnumerable<T> items, CancellationToken token)
Parameters
Type Name Description
IEnumerable<T> items

The source sequence.

CancellationToken token

A token to cancel enumeration.

Returns
Type Description
IEnumerable<T>

A sequence that supports throwing if cancelled.

Type Parameters
Name Description
T

The type of elements in the sequence.