Microsoft.Bcl.AsyncInterfaces 10.0.0-preview.1.25080.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
39
Azure.Core
This is the implementation of the Azure Client Pipeline
28
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/
27
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
27
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
25
SSH.NET
SSH.NET is a Secure Shell (SSH) library for .NET, optimized for parallelism.
24
Dapper.StrongName
A high performance Micro-ORM supporting SQL Server, MySQL, Sqlite, SqlCE, Firebird etc. Major Sponsor: Dapper Plus from ZZZ Projects.
24
MassTransit
MassTransit is a message-based distributed application framework for .NET http://masstransit-project.com
23
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/
23
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/
23
Autofac
Autofac is an IoC container for Microsoft .NET. It manages the dependencies between classes so that applications stay easy to change as they grow in size and complexity.
23
ServiceStack.Text.Core
.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
23
Autofac
Autofac is an IoC container for Microsoft .NET. It manages the dependencies between classes so that applications stay easy to change as they grow in size and complexity.
22

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 20 03/06/2025
9.0.0 17 12/01/2024
9.0.0-rc.2.24473.5 17 03/06/2025
9.0.0-rc.1.24431.7 17 03/09/2025
9.0.0-preview.7.24405.7 17 03/06/2025
9.0.0-preview.6.24327.7 17 03/06/2025
9.0.0-preview.5.24306.7 18 03/09/2025
9.0.0-preview.2.24128.5 17 03/06/2025
9.0.0-preview.1.24080.9 16 03/06/2025
8.0.0-rc.1.23419.4 17 03/06/2025
8.0.0-preview.7.23375.6 17 03/09/2025
8.0.0-preview.6.23329.7 17 03/09/2025
8.0.0-preview.5.23280.8 17 03/06/2025
8.0.0-preview.4.23259.5 17 03/06/2025
8.0.0-preview.3.23174.8 18 03/06/2025
8.0.0-preview.2.23128.3 17 03/09/2025
8.0.0-preview.1.23110.8 17 03/06/2025
7.0.0 16 03/06/2025
7.0.0-rc.2.22472.3 17 03/06/2025
7.0.0-preview.6.22324.4 18 03/09/2025
7.0.0-preview.5.22301.12 19 03/12/2025
7.0.0-preview.4.22229.4 19 03/06/2025
7.0.0-preview.3.22175.4 19 03/06/2025
7.0.0-preview.2.22152.2 19 03/12/2025
7.0.0-preview.1.22076.8 17 03/06/2025
6.0.0 19 06/15/2023
6.0.0-rc.2.21480.5 17 03/06/2025
6.0.0-rc.1.21451.13 18 03/06/2025
6.0.0-preview.7.21377.19 17 03/09/2025
6.0.0-preview.6.21352.12 17 03/09/2025
6.0.0-preview.3.21201.4 17 03/06/2025
6.0.0-preview.2.21154.6 17 03/06/2025
6.0.0-preview.1.21102.12 17 03/06/2025
5.0.0 18 06/17/2023
5.0.0-rc.2.20475.5 17 03/06/2025
5.0.0-rc.1.20451.14 19 03/12/2025
1.1.0 17 03/06/2025
1.1.0-preview3.19551.4 18 03/06/2025
1.1.0-preview2.19523.17 17 03/09/2025
1.1.0-preview1.19504.10 17 03/06/2025
1.0.0 18 06/19/2023
1.0.0-rc1.19456.4 17 03/09/2025
1.0.0-preview9.19416.11 17 03/06/2025
1.0.0-preview7.19362.9 17 03/09/2025
1.0.0-preview6.19303.8 17 03/06/2025
1.0.0-preview6.19264.9 18 03/06/2025
1.0.0-preview6.19259.10 17 03/06/2025