-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Allow bounded channel to be created with drop delegate #50331
Allow bounded channel to be created with drop delegate #50331
Conversation
- Add additional CreateBounded overload with delegate parameter that will be called when item is being dropped from channel - Added unit tests
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
Tagging subscribers to this area: @carlossanlop Issue DetailsFixes #36522
|
src/libraries/System.Threading.Channels/src/System/Threading/Channels/BoundedChannel.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Threading.Channels/src/System/Threading/Channels/Channel.cs
Show resolved
Hide resolved
src/libraries/System.Threading.Channels/tests/BoundedChannelTests.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Threading.Channels/tests/BoundedChannelTests.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Threading.Channels/tests/BoundedChannelTests.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Threading.Channels/src/System/Threading/Channels/BoundedChannel.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Threading.Channels/src/System/Threading/Channels/BoundedChannel.cs
Show resolved
Hide resolved
src/libraries/System.Threading.Channels/src/System/Threading/Channels/Channel.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Threading.Channels/src/System/Threading/Channels/BoundedChannel.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Threading.Channels/src/System/Threading/Channels/BoundedChannel.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Threading.Channels/src/System/Threading/Channels/BoundedChannel.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Threading.Channels/src/System/Threading/Channels/BoundedChannel.cs
Outdated
Show resolved
Hide resolved
Enqueuing of new item should be done while sync lock is being held. Added additional tests.
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.
Thanks!
Fixes #36522
Add additional CreateBounded overload with delegate parameter that will be called when item is being dropped from channel
Added unit tests