Microsoft.Bcl.AsyncInterfaces 9.0.0-preview.2.24128.5

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
RavenDB.Client
RavenDB Client is the client library for accessing RavenDB
33
Azure.Core
This is the implementation of the Azure Client Pipeline
23
Azure.Messaging.EventHubs.Processor
Azure Event Hubs is a highly scalable publish-subscribe service that can ingest millions of events per second and stream them to multiple consumers. This library extends its Event Processor with durable storage for checkpoint information using Azure Blob storage. For more information about Event Hubs, see https://azure.microsoft.com/en-us/services/event-hubs/
21
ServiceStack.Text
.NET's fastest JSON, JSV and CSV Text Serializers. Fast, Light, Resilient. Contains ServiceStack's high-performance text-processing powers, for more info see: https://github.com/ServiceStack/ServiceStack.Text
19
Azure.Messaging.EventHubs
Azure Event Hubs is a highly scalable publish-subscribe service that can ingest millions of events per second and stream them to multiple consumers. This client library allows for both publishing and consuming events using Azure Event Hubs. For more information about Event Hubs, see https://azure.microsoft.com/en-us/services/event-hubs/
18
ServiceStack
ServiceStack is a simple and fast alternative to WCF, MVC and Web API in one cohesive framework for all your services and web apps that's intuitive and Easy to use! To get started see: https://servicestack.net/getting-started
18
SSH.NET
SSH.NET is a Secure Shell (SSH) library for .NET, optimized for parallelism.
18
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/473e349f86b0f5c9dd47330cba22e0ea225c85a5.
17
Azure.Data.AppConfiguration
This is the Microsoft Azure Application Configuration Service client library
17
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/e091728607ca0fc9efca55ccfb3e59259c6b5a0a.
17
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/dfa7fc6bdea31a858a402168384192b633c811fa.
17
Azure.Messaging.EventHubs.Processor
Azure Event Hubs is a highly scalable publish-subscribe service that can ingest millions of events per second and stream them to multiple consumers. This library extends its Event Processor with durable storage for checkpoint information using Azure Blob storage. For more information about Event Hubs, see https://azure.microsoft.com/en-us/services/event-hubs/
17
Microsoft.CodeAnalysis.Workspaces.MSBuild
.NET Compiler Platform ("Roslyn") support for analyzing MSBuild projects and solutions. This should be used with at least one of the following packages to add the appropriate language support: - Microsoft.CodeAnalysis.CSharp.Workspaces - Microsoft.CodeAnalysis.VisualBasic.Workspaces More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/2b7d172669b2f7e55803b55f317cfcc2d4279d76.
17
Azure.Messaging.EventHubs
Azure Event Hubs is a highly scalable publish-subscribe service that can ingest millions of events per second and stream them to multiple consumers. This client library allows for both publishing and consuming events using Azure Event Hubs. For more information about Event Hubs, see https://azure.microsoft.com/en-us/services/event-hubs/
17
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/1ce8866c9de4c2d67351ef6863699dee03b0804a.
16
MassTransit
MassTransit is a message-based distributed application framework for .NET http://masstransit-project.com
16

https://go.microsoft.com/fwlink/?LinkID=799421

.NET Framework 4.6.2

.NET Standard 2.0

.NET Standard 2.1

  • No dependencies.

Version Downloads Last updated
10.0.0-preview.1.25080.5 14 03/06/2025
9.0.0 12 12/01/2024
9.0.0-rc.2.24473.5 12 03/06/2025
9.0.0-rc.1.24431.7 12 03/09/2025
9.0.0-preview.7.24405.7 12 03/06/2025
9.0.0-preview.6.24327.7 12 03/06/2025
9.0.0-preview.5.24306.7 13 03/09/2025
9.0.0-preview.2.24128.5 12 03/06/2025
9.0.0-preview.1.24080.9 11 03/06/2025
8.0.0-rc.1.23419.4 12 03/06/2025
8.0.0-preview.7.23375.6 12 03/09/2025
8.0.0-preview.6.23329.7 12 03/09/2025
8.0.0-preview.5.23280.8 12 03/06/2025
8.0.0-preview.4.23259.5 12 03/06/2025
8.0.0-preview.3.23174.8 13 03/06/2025
8.0.0-preview.2.23128.3 12 03/09/2025
8.0.0-preview.1.23110.8 12 03/06/2025
7.0.0 11 03/06/2025
7.0.0-rc.2.22472.3 12 03/06/2025
7.0.0-preview.6.22324.4 13 03/09/2025
7.0.0-preview.5.22301.12 13 03/12/2025
7.0.0-preview.4.22229.4 14 03/06/2025
7.0.0-preview.3.22175.4 14 03/06/2025
7.0.0-preview.2.22152.2 13 03/12/2025
7.0.0-preview.1.22076.8 12 03/06/2025
6.0.0 14 06/15/2023
6.0.0-rc.2.21480.5 12 03/06/2025
6.0.0-rc.1.21451.13 13 03/06/2025
6.0.0-preview.7.21377.19 12 03/09/2025
6.0.0-preview.6.21352.12 12 03/09/2025
6.0.0-preview.3.21201.4 12 03/06/2025
6.0.0-preview.2.21154.6 12 03/06/2025
6.0.0-preview.1.21102.12 12 03/06/2025
5.0.0 13 06/17/2023
5.0.0-rc.2.20475.5 12 03/06/2025
5.0.0-rc.1.20451.14 13 03/12/2025
1.1.0 12 03/06/2025
1.1.0-preview3.19551.4 13 03/06/2025
1.1.0-preview2.19523.17 12 03/09/2025
1.1.0-preview1.19504.10 12 03/06/2025
1.0.0 13 06/19/2023
1.0.0-rc1.19456.4 12 03/09/2025
1.0.0-preview9.19416.11 12 03/06/2025
1.0.0-preview7.19362.9 12 03/09/2025
1.0.0-preview6.19303.8 12 03/06/2025
1.0.0-preview6.19264.9 13 03/06/2025
1.0.0-preview6.19259.10 12 03/06/2025