-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chaining async's #33
Comments
@JeffN825 , sorry for late reply as I was on my vacation. This library definitely has The solution that is available out of the box may look like this:
Let me know if this helps. |
[Bing Translate] If C#8 (IAsyncEnumerable) is officially launched, my Code should be simple:
The asynchronous flow process I want: However, it appears that after using Dasync/AsyncEnumerable, if an exception occurs, the asynchronous stream is interrupted and the yield data is not continued to be processed. And, i need support CancellationToken, When I click the Cancel button of the UI, the asynchronous stream should be able to interrupt. How should I implement this asynchronous flow? |
Sorry if this is a question that's already been answered, but I'm trying to figure out if this library is applicable to a big of fairly simple code. Today I have (converted to a more verbose form for clarity)
Obviously this leaves a lot to be desired in terms of verbosity, especially since this kind of code is repeated dozens of times throughout my codebase.
Ideally, I'm looking for the means to write something like this:
I can easily write SelectAsync and ToDictionaryAsync myself as extension methods, but trying to understand if this library provides that kind of functionality already.
The text was updated successfully, but these errors were encountered: