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 reactor extensions. #9

Merged
merged 4 commits into from
Jun 5, 2017

Conversation

utwyko
Copy link
Contributor

@utwyko utwyko commented Jun 4, 2017

Thanks for creating this library, it solves a problem I have constantly while working with Reactive Streams.

I've added a module with extensions for the implementation I work with the most often: Project Reactor.

Copy link
Contributor

@artem-zinnatullin artem-zinnatullin left a comment

Choose a reason for hiding this comment

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

LGTM, just few small comments!


dependencies {
testCompile libraries.spek
testCompile libraries.spekJunitPlatformEngine
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add testCompile libraries.junitPlatformLauncher as you did in the previous PR #8 :)

* </dl>
*
* @return a Flux that emits `Some.value` of those items emitted by the source Flux that are `Some`.
* @see <a href="http://reactivex.io/documentation/operators/filter.html">ReactiveX operators documentation: Filter</a>
Copy link
Contributor

Choose a reason for hiding this comment

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

* </dl>
*
* @return a Flux that emits `Unit` for each item emitted by the source Flux that is `None`.
* @see <a href="http://reactivex.io/documentation/operators/filter.html">ReactiveX operators documentation: Filter</a>
Copy link
Contributor

Choose a reason for hiding this comment

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

* <p>
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/filter.png" alt="">
* <dl>
* <dt><b>Scheduler:</b></dt>
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's remove note about scheduling, it's standard for RxJava, but not part of javadoc for operators in Reactor


val stepVerifier by memoized {
StepVerifier.create(
stream.filterSome()
Copy link
Contributor

Choose a reason for hiding this comment

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

single line?


val subscriber by memoized {
StepVerifier.create(
stream.filterNone()
Copy link
Contributor

Choose a reason for hiding this comment

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

single line?

@utwyko
Copy link
Contributor Author

utwyko commented Jun 4, 2017

Thanks for the review, made changes accordingly.

@artem-zinnatullin
Copy link
Contributor

Please give us a day or couple to discuss whether we'd like to make this part of Koptional repo or not since we're active RxJava users but not users of Project Reactor, I think decision will be positive but let's see :)

@artem-zinnatullin
Copy link
Contributor

So we've discussed this and decided to merge, thanks for addition, will do release today!

@artem-zinnatullin artem-zinnatullin merged commit ede7588 into gojuno:master Jun 5, 2017
@artem-zinnatullin
Copy link
Contributor

@utwyko FYI we released 1.1.0 with your extensions, however Bintray did not link it to jcenter repo for some reason (as usual uh), I've contacted them and hope to fix this soon (last time similar issue took about 4 days to resolve).

For now your extension is available on https://dl.bintray.com/gojuno/maven/com/gojuno/koptional/, once issue will be resolved it should also become available on https://jcenter.bintray.com/com/gojuno/koptional/

@utwyko utwyko deleted the reactor-extensions branch June 5, 2017 12:58
@utwyko
Copy link
Contributor Author

utwyko commented Jun 5, 2017

@artem-zinnatullin Great, thanks for the info.

@artem-zinnatullin
Copy link
Contributor

@artem-zinnatullin
Copy link
Contributor

@utwyko Reactor extensions are now available on Jcenter

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