Skip to content
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

Add onDiscard hook support to AbstractStreamObserverAndPublisher #292

Closed
bruto1 opened this issue Feb 13, 2022 · 0 comments
Closed

Add onDiscard hook support to AbstractStreamObserverAndPublisher #292

bruto1 opened this issue Feb 13, 2022 · 0 comments

Comments

@bruto1
Copy link
Contributor

bruto1 commented Feb 13, 2022

Currently, upon cancellation it just clears the queue, but its elements, for example, can be backed by reference counted objects which need to be released before being garbage collected (it's possible thanks to GoogleCloudPlatform/grpc-gcp-java#77 )
An example of when and how discarding is done can be found in FluxFlatMap, for example, or any other operator impl with a queue

bruto1 pushed a commit to bruto1/reactive-grpc that referenced this issue Feb 14, 2022
bruto1 added a commit to bruto1/reactive-grpc that referenced this issue Feb 14, 2022
bruto1 added a commit to bruto1/reactive-grpc that referenced this issue Feb 14, 2022
rmichela added a commit that referenced this issue Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants