Iciclecreek.Async 2.2.1

dotnet add package Iciclecreek.Async --version 2.2.1
                    
NuGet\Install-Package Iciclecreek.Async -Version 2.2.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Iciclecreek.Async" Version="2.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Iciclecreek.Async" Version="2.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Iciclecreek.Async" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Iciclecreek.Async --version 2.2.1
                    
#r "nuget: Iciclecreek.Async, 2.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Iciclecreek.Async@2.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Iciclecreek.Async&version=2.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Iciclecreek.Async&version=2.2.1
                    
Install as a Cake Tool

Iciclecreek.Async

Async extensions for LINQ and PLINQ queries

SelectParallelAsync()

This allows you to run an async select task which runs each task in parallel, with max parallelism.

You can use it with a normal enumerable:

    // using an enumerable, will max 10 tasks at a time concurrently
    var results = enumerable
        .SelectParallelAsync(async (item, index) =>
        {
            await ...;
            return result;
        }, maxParallel: 10)
        .ToList();

You can use it with a ParallelQuery

    // using an enumerable, will max 10 tasks at a time concurrently
    var results = enumerable
        .AsParallel()
        .WithDegreeOfParallelism(10)
        .SelectParallelAsync(async (item, index) =>
        {
            await ...;
            return result;
        })
        .ToList();

WhereParallelAsync()

This allows you to run an async Where() task which runs each task in parallel, with max parallelism.

You can use it with a normal enumerable:

    // using an enumerable, will max 10 tasks at a time concurrently
    var results = enumerable
        .WhereParallelAsync(async (item, index) =>
        {
            await ...;
            return true/false;
        }, maxParallel: 10)
        .ToList();

You can use it with a ParallelQuery

    // using an enumerable, will max 10 tasks at a time concurrently
    var results = enumerable
        .AsParallel()
        .WithDegreeOfParallelism(10)
        .WhereParallelAsync(async (item, index) =>
        {
            await ...;
            return true/false;
        })
        .ToList();

ForEachParallelAsync()

ForEachParallelAsync() will await all items in an enumerable of Task and return the original objects. This is useful to perform parallel actions on an enumerable.

    var results = enumerable
        .ForEachParallelAsync(async (item) => 
        {
            await ...;
        });

WaitAll()

WaitAll() will await all items in an enumerable of Task<> and return the result of the tasks.

    var results = enumerable
        .Select(async (item) => 
        {
            await ...;
            return result;
        })
        .WaitAll() // turns IEnumerable<Task<X>> => IEnumerable<X>

NOTE: You don't need to use WaitAll() on result of SelectParallelAsync(). It does the equivelent of WaitAll() internally.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Iciclecreek.Async:

Package Downloads
Linq.AI

Core library for Linq extensions for AI transformations.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.2.1 127 5/9/2025
2.2.0 116 5/9/2025
2.1.0 225 10/11/2024
2.0.0 316 9/12/2024
1.1.0 145 9/11/2024
1.0.3 169 9/10/2024
1.0.2 153 9/9/2024
1.0.1 148 9/9/2024
1.0.0 146 9/9/2024