Preloading / Prefetching IAsyncEnumerable #64697
Unanswered
TonyValenti
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You could use Channels for that. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an IAsyncEnumerable that returns batches of items from a web service.
It takes ~5 seconds to return a batch and ~5 seconds to process a batch.
This means that it takes ~10 seconds for each batch to process.
However, this could be amortized down to ~5 seconds if it were possible for the batch enumerator to keep running in the background and store the items in buffer. Is there an API that does this?
I'm hoping to do something like this:
Beta Was this translation helpful? Give feedback.
All reactions