Skip to content

Add support for IAsyncEnumerable #2267

Open
@cremor

Description

@cremor

C# 8.0 and .NET Standard 2.1 brought us asynchronous streams (horrible name, I'll call them "async enumerables" from now on). It would be nice if NHibernate could add new methods that return an IAsyncEnumerable<T>. This would allow us to iterate over the results with await foreach.

I know this won't be a simple task and will require a few preparation steps, like adding .NET Standard 2.1 (and maybe .NET Core 3.0) targets to the build process. (Maybe this would even be the first time that NHibernate has a different API across target frameworks? edit: .NET Standard 2.0 and .NET Framework support IAsyncEnumerable with Microsoft.Bcl.AsyncInterfaces.) But I thought that this issue could at least be a tracking issue for the overall progress.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions