KEMBAR78
Deprecate [Flux|Mono|Synchronous]Sink currentContext by simonbasle · Pull Request #2974 · reactor/reactor-core · GitHub
Skip to content

Conversation

@simonbasle
Copy link
Contributor

This commit deprecates currentContext method in FluxSink, MonoSink and
SynchronousSink in favor of the newly introduced getContextView.

The methods are slated for removal in 3.6.0 at the earliest. These were
overlooked in the 3.4.0 release where other Context-returning methods
were deprecated.

Fixes #2971.

@simonbasle simonbasle requested a review from a team as a code owner March 17, 2022 17:33
@simonbasle simonbasle added this to the 3.4.17 milestone Mar 17, 2022
@simonbasle simonbasle added the warn/deprecation This issue/PR introduces deprecations label Mar 17, 2022
@simonbasle simonbasle self-assigned this Mar 17, 2022
@simonbasle simonbasle requested a review from a team March 17, 2022 17:34
@simonbasle simonbasle added the type/enhancement A general enhancement label Mar 17, 2022
This commit deprecates currentContext method in FluxSink, MonoSink and
SynchronousSink in favor of the newly introduced getContextView.

The methods are slated for removal in 3.6.0 at the earliest. These were
overlooked in the 3.4.0 release where other Context-returning methods
were deprecated.

Fixes #2971.
@simonbasle simonbasle force-pushed the 2971-depreacteCurrentContextInOldSinks branch from fe9c6bc to d7c3a51 Compare March 18, 2022 09:30
@simonbasle simonbasle merged commit c920eb2 into 3.4.x Mar 18, 2022
@simonbasle simonbasle deleted the 2971-depreacteCurrentContextInOldSinks branch March 18, 2022 09:53
@reactorbot
Copy link

@simonbasle this PR seems to have been merged on a maintenance branch, please ensure the change is merge-forwarded to intermediate maintenance branches and up to main 🙇

@simonbasle
Copy link
Contributor Author

NB: This will be released in 3.5.0-M1 in March before it is released in 3.4.17 in April.

simonbasle added a commit that referenced this pull request Mar 18, 2022
Released in 3.5.0-M1.
Adapted test to account for `take(long, boolean)` changes.
@simonbasle simonbasle modified the milestones: 3.4.17, 3.5.0-M1 Mar 18, 2022
simonbasle added a commit that referenced this pull request Apr 20, 2022
This commit backports #3021, a default implementation of the
`contextView()` method of the FluxSink, MonoSink and SynchronousSink
"old sinks" classes.

The backport is necessary because the new method was not added only in
3.5.0-M1 as initially stated, but in 3.4.17 as well.

Backport of commit 6eecf85.
See #2971, #2974 and #3021.
simonbasle added a commit that referenced this pull request Apr 20, 2022
This commit backports #3021, a default implementation of the
`contextView()` method of the FluxSink, MonoSink and SynchronousSink
"old sinks" classes.

The backport is necessary because the new method was not added only in
3.5.0-M1 as initially stated, but in 3.4.17 as well.

Backport of commit 6eecf85.
See #2971, #2974 and #3021.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/enhancement A general enhancement warn/deprecation This issue/PR introduces deprecations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants