Skip to content

3.x: Flowable.publish() should not drop items if there are no consumers #5899

Closed
@akarnokd

Description

@akarnokd

Unlike Observable.publish(), the Flowable.publish() has an internal queue and fetches data from upstream based on consumption. For historical reasons, the 2.x implementation drops items when there are no consumers, which can lead to unnecessary dataloss when switching between consumers on an item boundary.

I propose changing the operator in 3.x to not drop items when there are no consumers. The 2.x behavior can be achieved via an additional unbounded consumer which stays subscribed until the operator completes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions