-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Avoid buffering and dispatching all ProducerConsumer items in one go in recent copilot helper. #78454
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
Conversation
| return await consumeItems(channel.Reader, args, cancellationToken).ConfigureAwait(false); | ||
| } | ||
|
|
||
| async Task ProduceItemsAndWriteToChannelAsync() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the original code in here moved to PerformActionAndCloseWriterAsync so that it could be used by the new helper i added recently.
| { | ||
| await Task.Yield().ConfigureAwait(false); | ||
|
|
||
| // It's ok to use TryWrite here. TryWrite always succeeds unless the channel is completed. And the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment no longer applies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated.
No description provided.