Microsoft.Bcl.AsyncInterfaces 9.0.2
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.Logging
Logging infrastructure default implementation for Microsoft.Extensions.Logging.
|
5 |
Microsoft.Extensions.DependencyInjection.Abstractions
Abstractions for dependency injection.
Commonly Used Types:
Microsoft.Extensions.DependencyInjection.IServiceCollection
|
4 |
Microsoft.Extensions.Logging
Logging infrastructure default implementation for Microsoft.Extensions.Logging.
|
3 |
Microsoft.Extensions.DependencyInjection.Abstractions
Abstractions for dependency injection.
Commonly Used Types:
Microsoft.Extensions.DependencyInjection.IServiceCollection
|
3 |
Microsoft.Extensions.Logging
Logging infrastructure default implementation for Microsoft.Extensions.Logging.
|
2 |
Microsoft.ClearScript.Core
A library for adding scripting to .NET applications. This package contains the core assembly shared by all script engines.
|
2 |
Microsoft.CodeAnalysis.CSharp.Workspaces
.NET Compiler Platform ("Roslyn") support for analyzing C# projects and solutions.
More details at https://aka.ms/roslyn-packages
This package was built from the source at https://github.com/dotnet/roslyn/commit/dfa7fc6bdea31a858a402168384192b633c811fa.
|
2 |
Dapper
A high performance Micro-ORM supporting SQL Server, MySQL, Sqlite, SqlCE, Firebird etc. Major Sponsor: Dapper Plus from ZZZ Projects.
|
2 |
StackExchange.Redis
High performance Redis client, incorporating both synchronous and asynchronous usage.
|
2 |
Microsoft.Extensions.DependencyInjection.Abstractions
Abstractions for dependency injection.
Commonly Used Types:
Microsoft.Extensions.DependencyInjection.IServiceCollection
|
2 |
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.
The System.Text.Json library is built-in as part of the shared framework in .NET Runtime. The package can be installed when you need to use it in other target frameworks.
|
2 |
AWSSDK.Core
The Amazon Web Services SDK for .NET - Core Runtime
|
2 |
Microsoft.Extensions.Diagnostics.HealthChecks
Components for performing health checks in .NET applications
Commonly Used Types:
Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckService
Microsoft.Extensions.Diagnostics.HealthChecks.IHealthChecksBuilder
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/277e317dd5cab9859ceea4c8ebae218522c2c173
|
1 |
Microsoft.CodeAnalysis.VisualBasic.Workspaces
.NET Compiler Platform ("Roslyn") support for analyzing Visual Basic projects and solutions.
More details at https://aka.ms/roslyn-packages
This package was built from the source at https://github.com/dotnet/roslyn/commit/8edf7bcd4f1594c3d68a6a567469f41dbd33dd1b.
|
1 |
Microsoft.Extensions.Diagnostics.HealthChecks
Components for performing health checks in .NET applications
Commonly Used Types:
Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckService
Microsoft.Extensions.Diagnostics.HealthChecks.IHealthChecksBuilder
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/fa4d80b76c2431a825be026f6bbabca63e1f42ef
|
1 |
Microsoft.CodeAnalysis.VisualBasic.Workspaces
.NET Compiler Platform ("Roslyn") support for analyzing Visual Basic projects and solutions.
More details at https://aka.ms/roslyn-packages
This package was built from the source at https://github.com/dotnet/roslyn/commit/2b7d172669b2f7e55803b55f317cfcc2d4279d76.
|
1 |
Microsoft.Extensions.Diagnostics.HealthChecks
Components for performing health checks in .NET applications
Commonly Used Types:
Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckService
Microsoft.Extensions.Diagnostics.HealthChecks.IHealthChecksBuilder
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/4ae1269bff83362236d0f3bd4c9302e6a1e9341c
|
1 |
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/.
|
1 |
.NET Framework 4.6.2
- System.Threading.Tasks.Extensions (>= 4.5.4)
.NET Standard 2.0
- System.Threading.Tasks.Extensions (>= 4.5.4)
.NET Standard 2.1
- No dependencies.