Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 675 Bytes

File metadata and controls

20 lines (14 loc) · 675 Bytes

EnumerableExtensions.WithProgress<T> method

Adds a progress callback to any enumeration, which will increment an internal counter when enumerating and call the specified callback.

public static IEnumerable<T> WithProgress<T>(this IEnumerable<T> src, Action<double> callback)
parameter description
T Items type
src Source collection
callback Callback taking the current increment value as parameter

See Also