Skip to content
Discussion options

You must be logged in to vote

I'm wondering if it's possible to back an async IAsyncEnumerable function with a custom type in a similar manner

It's not.

Can that then be used as the return type for the async iterator function with another special builder?

No. There's no ability in the language/compiler to substitute an implementation for any iterator, whether sync or async.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@neuecc
Comment options

Answer selected by timcassell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants