Skip to content

Add onDiscard hook support to AbstractStreamObserverAndPublisher #292

@bruto1

Description

@bruto1

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions