KEMBAR78
Change behavior of switchOnNext/switchMap default 0 prefetch by simonbasle · Pull Request #2956 · reactor/reactor-core · GitHub
Skip to content

Conversation

@simonbasle
Copy link
Contributor

This commit changes the no-parameter variant of Flux switchMap and
switchOnNext operators to default to a behavior of prefetch = 0.

This was documented in 3.4.x when the parameterized variant was
deprecated. Note that the prefetch > 0 implementation is slated for
complete removal in 3.6.0.

Old prefetch behavior could be emulated with limitRate on inners.

Fixes #2607.

@simonbasle simonbasle requested a review from a team as a code owner March 9, 2022 19:46
@simonbasle simonbasle added this to the 3.5.0-M1 milestone Mar 9, 2022
@simonbasle simonbasle added the warn/behavior-change Breaking change of publicly advertised behavior label Mar 9, 2022
@simonbasle simonbasle self-assigned this Mar 9, 2022
@simonbasle simonbasle requested a review from a team March 9, 2022 19:46
@simonbasle simonbasle added the type/chores A task not related to code (build, formatting, process, ...) label Mar 9, 2022
@simonbasle simonbasle merged commit 1ce7f10 into main Mar 10, 2022
@simonbasle simonbasle deleted the 2607-changeDefaultSwitchOnNextMapBehavior branch March 10, 2022 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/chores A task not related to code (build, formatting, process, ...) warn/behavior-change Breaking change of publicly advertised behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change the default behavior of switchOnNext/switchMap to be prefetch=0

2 participants