dotnet / dotnet/vblang

IAsyncEnumerable support

Open
#163 3 comments 4 reactions 0 assignees View on GitHub
Proposal
Dominant language
No language data
Stars
328
Forks
71
PR merge metrics
No merged PRs in 30d

Description

It's still a bit early to talk about this in detail but putting this placeholder out there for visibility.

There are several orthogonal features we _could_ do for `IAsyncEnumerable` support.

**Production**
* Async Iterators
``` VB.NET
Async Iterator Function EnumerateCustomers() As IAsyncEnumerable
Do
Dim c = Await ...
Yield ...
Loop
End Function
```
**Consumption**
* Await Each loop
``` VB.NET
Await Each item In asyncSource
' Do such-and-such.
Next
```

* Async LINQ
``` VB.NET
Dim q = Async From ... ' Like this?

' Or like this?
Dim q = Await item In asyncSource
Where P(item)
Select item.M, item.N
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.