-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce an alternative to Processor-with-upstream case (#3042)
This commit introduces an additional migration path for a subset of Processors (namely the `EmitterProcessor`) before they get removed from the public API in 3.5.0. The `Sinks.ManyWithUpstream` is a Processor-adjacent API that supports the connection of some Sinks.Many to an upstream like Processors used to do, but without exposing the `CoreSubscriber` API: - use of the `Publisher` aspect via `asFlux()` similar to `Sinks.Many` - subscription to an upstream via `subscribeTo(Publisher)` This way, the underlying `CoreSubscriber` nature is never revealed to the user which avoids the trouble with mixing incompatible APIs. As a first scope, only `EmitterProcessor`-backed variants of sinks are offered, which map to `multicast().onBackpressureBuffer(...)` flavors. As an additional indication that this is an advanced case, these flavors are only exposed as `Sinks.ManyWithUpstream` under the `unsafe().many()` spec, not the root `.many()` spec.
- Loading branch information
1 parent
bee3d07
commit b07f391
Showing
6 changed files
with
388 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.