Microsoft.Bcl.AsyncInterfaces 10.0.0-preview.5.25277.114
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 |
---|---|
ZstdSharp.Port
Port of zstd compression library to c#
|
3 |
Grpc.Net.Common
Infrastructure for common functionality in gRPC
|
3 |
Microsoft.AspNetCore.Connections.Abstractions
Core components of ASP.NET Core networking protocol stack.
This package was built from the source code at https://github.com/dotnet/dotnet/tree/ddf39a1b4690fbe23aea79c78da67004a5c31094
|
3 |
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).
|
3 |
Microsoft.Bcl.TimeProvider
Provides support for system time abstraction primitives for .NET Framework and .NET Standard.
|
3 |
Microsoft.AspNetCore.Connections.Abstractions
Core components of ASP.NET Core networking protocol stack.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/d827c653b787c07de908240b7746ce34d3e6271e
|
3 |
Microsoft.AspNetCore.Connections.Abstractions
Core components of ASP.NET Core networking protocol stack.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/25bd01f17d5f01fc78bea5eb5308b2c0d79e2889
|
3 |
FluentFTP
An FTP and FTPS client for .NET & .NET Standard, optimized for speed. Provides extensive FTP commands, File uploads/downloads, SSL/TLS connections, Directory listing parsing, File hashing/checksums, File permissions/CHMOD, FTP proxies, FXP transfers, UTF-8 support, Async/await support, Powershell support and more. Written entirely in C#, with no external dependencies.
|
2 |
Nerdbank.Streams
Streams for full duplex in-proc communication, wrap a WebSocket, split a stream into multiple channels, etc.
|
2 |
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/9bc8f80f8272bd000a642c1a09ffbf30b287d9c5.
|
2 |
AWSSDK.Core
The Amazon Web Services SDK for .NET - Core Runtime
|
2 |
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/bf8791d0d1be92c24e56cefa52aa139e2b5340c2.
|
2 |
Microsoft.Extensions.Logging
Logging infrastructure default implementation for Microsoft.Extensions.Logging.
|
2 |
Microsoft.CodeAnalysis.CSharp.Features
.NET Compiler Platform ("Roslyn") support for creating C# editing experiences.
More details at https://aka.ms/roslyn-packages
This package was built from the source at https://github.com/dotnet/roslyn/commit/75e79dace86b274327a1afe479228d82a06051a4.
|
2 |
Microsoft.AspNetCore.Connections.Abstractions
Core components of ASP.NET Core networking protocol stack.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/b1beadfe0ad3d02eb5207681a5328793c4b3822c
|
2 |
https://go.microsoft.com/fwlink/?LinkID=799421
.NET Framework 4.6.2
- System.Threading.Tasks.Extensions (>= 4.6.3)
.NET Standard 2.0
- System.Threading.Tasks.Extensions (>= 4.6.3)
.NET Standard 2.1
- No dependencies.