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

Add the SkipWhile operator to Publisher #2542

Merged
merged 4 commits into from Mar 23, 2023

Conversation

bryce-anderson
Copy link
Contributor

Motivation:

It's useful to be able to skip elements of a stream until a predicate fails but that isn't yet supported in Servicetalk.

Modifications:

Add the SkipWhile operator to the Servicetalk Publisher class.

Result:

SkipWhile is now supported.

Motivation:

It's useful to be able to skip elements of a stream until a predicate
fails but that isn't yet supported in Servicetalk.

Modifications:

Add the SkipWhile operator to the Servicetalk Publisher class.

Result:

SkipWhile is now supported.
@@ -297,7 +297,7 @@ If HTTP/1.x protocol is configured ServiceTalk always fallbacks to it if the pee
IMPORTANT: Your runtime must support ALPN extension for TLS. The recommended way is to use OpenSSL provider and add
link:https://netty.io/wiki/forked-tomcat-native.html#artifacts[netty-tcnative] artifact to the classpath. If OpenSSL is
not available, make sure your JVM version supports ALPN or use
link:https://www.eclipse.org/jetty/documentation/current/alpn-chapter.html[another provider] that supports it.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The current link results in a 404.

Copy link
Member

@Scottmitch Scottmitch left a comment

Choose a reason for hiding this comment

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

suggestion on test but lgtm!

fyi when adding new operators we usually add a ReactiveStreams TCK test (see PublisherFilterTckTest). Looks like I didn't do this for Publisher.distinct() which is similar but not sure if it was an omission or bcz TCK wouldn't fail if duplicates aren't emitted.

Copy link
Member

@idelpivnitskiy idelpivnitskiy left a comment

Choose a reason for hiding this comment

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

🚀

@bryce-anderson bryce-anderson merged commit d9fd486 into apple:main Mar 23, 2023
15 checks passed
@bryce-anderson bryce-anderson deleted the banderson/skipWhile branch March 23, 2023 21:52
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.

None yet

3 participants