Microsoft.Bcl.AsyncInterfaces 11.0.0

About

As of C# 8, the C# language has support for producing and consuming asynchronous iterators. The library types in support of those features are available in .NET Core 3.0 and newer as well as in .NET Standard 2.1. This library provides the necessary definitions of those types to support these language features on .NET Framework and on .NET Standard 2.0. This library is not necessary nor recommended when targeting versions of .NET that include the relevant support.

Key Features

  • Enables the use of C# async iterators on older .NET platforms

How to Use

using System;
using System.Collections.Generic;
using System.Threading.Tasks;

internal static class Program
{
    private static async Task Main()
    {
        Console.WriteLine("Starting...");
        await foreach (var value in GetValuesAsync())
        {
            Console.WriteLine(value);
        }
        Console.WriteLine("Finished!");

        static async IAsyncEnumerable<int> GetValuesAsync()
        {
            for (int i = 0; i < 10; i++)
            {
                await Task.Delay(TimeSpan.FromSeconds(1));
                yield return i;
            }
        }
    }
}

Main Types

The main types provided by this library are:

  • IAsyncEnumerable<T>
  • IAsyncEnumerator<T>
  • IAsyncDisposable<T>

Additional Documentation

Feedback & Contributing

Microsoft.Bcl.AsyncInterfaces is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Showing the top 20 packages that depend on Microsoft.Bcl.AsyncInterfaces.

Packages Downloads
Microsoft.Extensions.DependencyInjection
Default implementation of dependency injection for Microsoft.Extensions.DependencyInjection. When using NuGet 3.x this package requires at least version 3.4.
1,094
Microsoft.Extensions.DependencyInjection
Default implementation of dependency injection for Microsoft.Extensions.DependencyInjection. When using NuGet 3.x this package requires at least version 3.4.
1,084
AWSSDK.Core
The Amazon Web Services SDK for .NET - Core Runtime
706
System.Text.Json
Provides high-performance and low-allocating types that serialize objects to JavaScript Object Notation (JSON) text and deserialize JSON text to objects, with UTF-8 support built-in. Also provides types to read and write JSON text encoded as UTF-8, and to create an in-memory document object model (DOM), that is read-only, for random access of the JSON elements within a structured view of the data. Commonly Used Types: System.Text.Json.JsonSerializer System.Text.Json.JsonDocument System.Text.Json.JsonElement System.Text.Json.Utf8JsonWriter System.Text.Json.Utf8JsonReader When using NuGet 3.x this package requires at least version 3.4.
688
AWSSDK.Core
The Amazon Web Services SDK for .NET - Core Runtime
668
AWSSDK.Core
The Amazon Web Services SDK for .NET - Core Runtime
634
StackExchange.Redis
High performance Redis client, incorporating both synchronous and asynchronous usage.
619
AWSSDK.Core
The Amazon Web Services SDK for .NET - Core Runtime
599
Microsoft.Extensions.Hosting.Abstractions
Hosting and startup abstractions for applications. When using NuGet 3.x this package requires at least version 3.4.
575
System.Text.Json
Provides high-performance and low-allocating types that serialize objects to JavaScript Object Notation (JSON) text and deserialize JSON text to objects, with UTF-8 support built-in. Also provides types to read and write JSON text encoded as UTF-8, and to create an in-memory document object model (DOM), that is read-only, for random access of the JSON elements within a structured view of the data. Commonly Used Types: System.Text.Json.JsonSerializer System.Text.Json.JsonDocument System.Text.Json.JsonElement System.Text.Json.Utf8JsonWriter System.Text.Json.Utf8JsonReader
519
Microsoft.Extensions.DependencyInjection
Default implementation of dependency injection for Microsoft.Extensions.DependencyInjection. When using NuGet 3.x this package requires at least version 3.4.
508
AWSSDK.Core
The Amazon Web Services SDK for .NET - Core Runtime
489
AWSSDK.Core
The Amazon Web Services SDK for .NET - Core Runtime
487
Microsoft.Extensions.DependencyInjection
Default implementation of dependency injection for Microsoft.Extensions.DependencyInjection.
438
Microsoft.CodeAnalysis.Workspaces.Common
A shared package used by the .NET Compiler Platform ("Roslyn") including support for analyzing projects and solutions. Do not install this package manually, it will be added as a prerequisite by other packages that require it. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/8de9e4b2beba5b7c0edd6f1e6a4f192a51fdc872.
431
AWSSDK.Core
The Amazon Web Services SDK for .NET - Core Runtime
426
System.Linq.Async
Provides support for Language-Integrated Query (LINQ) over IAsyncEnumerable<T> sequences.
420
Microsoft.OData.Core
Classes to serialize, deserialize and validate OData JSON payloads. Supports OData v4. Enables construction of OData services and clients. Targets .NET Platform Standard 1.1. OData .NET library is open source at http://github.com/OData/odata.net. Documentation for the library can be found at https://docs.microsoft.com/en-us/odata/.
393
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications. When using NuGet 3.x this package requires at least version 3.4.
374
AWSSDK.Core
The Amazon Web Services SDK for .NET - Core Runtime
319

.NET Framework 4.6.2

.NET Standard 2.0

.NET Standard 2.1

  • No dependencies.

Version Downloads Last updated
11.0.0 1 11/15/2026
11.0.0-rc.3.26522.148 5 11/03/2026
11.0.0-rc.2.26504.105 9 10/14/2026
11.0.0-rc.1.26425.128 8 09/15/2026
11.0.0-preview.7.26381.103 19 08/11/2026
11.0.0-preview.6.26359.118 20 07/19/2026
11.0.0-preview.5.26302.115 19 06/12/2026
11.0.0-preview.4.26230.115 22 05/14/2026
11.0.0-preview.3.26207.106 19 05/12/2026
11.0.0-preview.2.26159.112 23 03/20/2026
11.0.0-preview.1.26104.118 15 02/22/2026
10.0.15 1 11/17/2026
10.0.14 2 11/02/2026
10.0.13 3 10/14/2026
10.0.12 10 10/07/2026
10.0.11 13 08/11/2026
10.0.10 12 07/18/2026
10.0.9 14 06/25/2026
10.0.8 19 05/15/2026
10.0.7 15 06/07/2026
10.0.6 17 06/06/2026
10.0.5 22 03/20/2026
10.0.4 17 03/20/2026
10.0.3 16 02/22/2026
10.0.2 17 01/19/2026
10.0.1 15 12/10/2025
10.0.0 23 11/12/2025
10.0.0-rc.2.25502.107 23 10/15/2025
10.0.0-rc.1.25451.107 15 09/20/2025
10.0.0-preview.7.25380.108 23 08/25/2025
10.0.0-preview.6.25358.103 20 07/19/2025
10.0.0-preview.5.25277.114 14 06/22/2025
10.0.0-preview.4.25258.110 17 06/27/2026
10.0.0-preview.3.25171.5 20 04/21/2025
10.0.0-preview.2.25163.2 20 04/10/2025
10.0.0-preview.1.25080.5 17 03/02/2025
9.0.23 2 11/15/2026
9.0.22 3 10/30/2026
9.0.21 7 10/14/2026
9.0.20 11 09/17/2026
9.0.19 13 08/11/2026
9.0.18 14 07/19/2026
9.0.17 16 06/27/2026
9.0.16 24 06/24/2026
9.0.15 17 06/29/2026
9.0.14 13 06/28/2026
9.0.13 15 06/25/2026
9.0.12 17 06/24/2026
9.0.11 20 06/24/2026
9.0.10 19 06/25/2026
9.0.9 20 06/24/2026
9.0.8 26 06/24/2026
9.0.7 13 06/29/2026
9.0.6 15 06/28/2026
9.0.5 22 05/26/2025
9.0.4 21 04/22/2025
9.0.3 23 04/08/2025
9.0.2 17 03/12/2025
9.0.1 18 01/29/2025
9.0.0 23 11/17/2024
9.0.0-rc.2.24473.5 11 06/30/2026
9.0.0-rc.1.24431.7 11 06/30/2026
9.0.0-preview.7.24405.7 21 08/14/2024
9.0.0-preview.6.24327.7 19 08/09/2024
9.0.0-preview.5.24306.7 18 06/15/2024
9.0.0-preview.4.24266.19 14 06/07/2024
9.0.0-preview.3.24172.9 21 07/07/2026
9.0.0-preview.2.24128.5 13 03/21/2024
9.0.0-preview.1.24080.9 12 06/28/2026
8.0.0 37 12/30/2023
8.0.0-rc.2.23479.6 17 01/11/2024
8.0.0-rc.1.23419.4 16 01/11/2024
8.0.0-preview.7.23375.6 14 01/10/2024
8.0.0-preview.6.23329.7 16 01/11/2024
8.0.0-preview.5.23280.8 15 01/11/2024
8.0.0-preview.4.23259.5 13 01/11/2024
8.0.0-preview.3.23174.8 16 01/11/2024
8.0.0-preview.2.23128.3 20 01/11/2024
8.0.0-preview.1.23110.8 21 01/11/2024
7.0.0 25 11/23/2022
7.0.0-rc.2.22472.3 20 01/11/2024
7.0.0-rc.1.22426.10 20 01/11/2024
7.0.0-preview.7.22375.6 18 01/11/2024
7.0.0-preview.6.22324.4 16 01/11/2024
7.0.0-preview.5.22301.12 13 01/11/2024
7.0.0-preview.4.22229.4 16 01/11/2024
7.0.0-preview.3.22175.4 21 01/11/2024
7.0.0-preview.2.22152.2 17 01/11/2024
7.0.0-preview.1.22076.8 20 01/11/2024
6.0.2-mauipre.1.22102.15 21 01/11/2024
6.0.2-mauipre.1.22054.8 25 01/11/2024
6.0.0 66 03/23/2022
6.0.0-rc.2.21480.5 21 01/11/2024
6.0.0-rc.1.21451.13 18 01/11/2024
6.0.0-preview.7.21377.19 14 01/11/2024
6.0.0-preview.6.21352.12 14 01/11/2024
6.0.0-preview.5.21301.5 17 01/11/2024
6.0.0-preview.4.21253.7 13 01/11/2024
6.0.0-preview.3.21201.4 15 01/11/2024
6.0.0-preview.2.21154.6 16 01/11/2024
6.0.0-preview.1.21102.12 13 01/11/2024
5.0.0 291 01/13/2021
5.0.0-rc.2.20475.5 19 01/11/2024
5.0.0-rc.1.20451.14 17 01/11/2024
1.1.1 421 02/28/2021
1.1.0 93 02/26/2021
1.1.0-preview3.19551.4 19 01/11/2024
1.1.0-preview2.19523.17 23 01/11/2024
1.1.0-preview1.19504.10 24 01/11/2024
1.0.0 30 02/23/2021
1.0.0-rc1.19456.4 12 01/11/2024
1.0.0-preview9.19421.4 21 01/11/2024
1.0.0-preview9.19416.11 16 01/11/2024
1.0.0-preview8.19405.3 17 01/11/2024
1.0.0-preview7.19362.9 17 01/11/2024
1.0.0-preview6.19303.8 20 01/11/2024
1.0.0-preview6.19264.9 22 01/11/2024
1.0.0-preview6.19259.10 14 01/11/2024