Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publisher scanWith enhancements #2640

Merged
merged 2 commits into from
Jul 6, 2023
Merged

Conversation

Scottmitch
Copy link
Member

@Scottmitch Scottmitch commented Jul 5, 2023

Motivation:
Publisher scanWith operators only allow a limited set of
mapped terminal transformations. Use cases like mapping
state and preserving the onError Throwable aren't possible.

Modifications:

  • Introduce ScanMapper and ScanLifetimeMapper which
    support MappedTerminal that allows all the terminal combinations
    to be mapped.
  • Deprecate ScanWithMapper and ScanWithLifetimeMapper in favor of
    these new APIs.
  • Deprecate Publisher.scanWith and Publisher.scanWithLiftime in
    favor of the new extension operators.

Motivation:
Publisher scanWith operators only allow a limited set of
mapped terminal transformations. Use cases like mapping
state and preserving the onError Throwable aren't possible.

Modifications:
- Introduce ScanMapper and ScanLifetimeMapper which
support MappedTerminal that allows all the terminal combinations
to be mapped.
- Deprecate ScanWithMapper and ScanWithLifetimeMapper in favor of
these new APIs.
- Deprecate Publisher.scanWith and Publisher.scanWithLiftime in
favor of the new extension operators.
Copy link
Contributor

@tkountis tkountis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Scottmitch Scottmitch merged commit d078d0d into apple:main Jul 6, 2023
15 checks passed
@Scottmitch Scottmitch deleted the scan_with branch July 6, 2023 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants