[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Rendering.Tools.EnumerableExtension.WithCancellation

WithCancellation Method

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

Enumerates the items with cancellation support.

Declaration
public static IEnumerable<T> WithCancellation<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 cancellation.

Type Parameters
Name Description
T

The type of elements in the sequence.