Microsoft.Bcl.AsyncInterfaces
10.0.0-preview.5.25277.101
Prefix Reserved
dotnet add package Microsoft.Bcl.AsyncInterfaces --version 10.0.0-preview.5.25277.101
NuGet\Install-Package Microsoft.Bcl.AsyncInterfaces -Version 10.0.0-preview.5.25277.101
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="10.0.0-preview.5.25277.101" />
paket add Microsoft.Bcl.AsyncInterfaces --version 10.0.0-preview.5.25277.101
#r "nuget: Microsoft.Bcl.AsyncInterfaces, 10.0.0-preview.5.25277.101"
// Install Microsoft.Bcl.AsyncInterfaces as a Cake Addin #addin nuget:?package=Microsoft.Bcl.AsyncInterfaces&version=10.0.0-preview.5.25277.101&prerelease // Install Microsoft.Bcl.AsyncInterfaces as a Cake Tool #tool nuget:?package=Microsoft.Bcl.AsyncInterfaces&version=10.0.0-preview.5.25277.101&prerelease
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.
Product | Versions 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- System.Threading.Tasks.Extensions (>= 4.6.3)
-
.NETStandard 2.0
- System.Threading.Tasks.Extensions (>= 4.6.3)
-
.NETStandard 2.1
- No dependencies.
GitHub repositories (455)
Showing the top 5 popular GitHub repositories that depend on Microsoft.Bcl.AsyncInterfaces:
Repository | Stars |
---|---|
microsoft/PowerToys
Windows system utilities to maximize productivity
|
|
PowerShell/PowerShell
PowerShell for every system!
|
|
AvaloniaUI/Avalonia
Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
|
|
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
|
|
BeyondDimension/SteamTools
🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。
|
Version | Downloads | Last updated |
---|---|---|
10.0.0-preview.5.25277.101 | 0 | 5/29/2025 |
10.0.0-preview.4.25255.103 | 0 | 5/12/2025 |