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

Upgrade to RxJava 1.0.17 #182

Merged
merged 10 commits into from
Dec 16, 2015
Merged

Upgrade to RxJava 1.0.17 #182

merged 10 commits into from
Dec 16, 2015

Conversation

zsxwing
Copy link
Member

@zsxwing zsxwing commented Nov 22, 2015

No description provided.

@@ -76,6 +76,8 @@ class ObservableCompletenessKit extends CompletenessKit {
"doOnUnsubscribe(Action0)" -> "doOnUnsubscribe(=> Unit)",
"doOnTerminate(Action0)" -> "doOnTerminate(=> Unit)",
"elementAtOrDefault(Int, T)" -> "elementAtOrDefault(Int, U)",
"extend(Func1[_ >: OnSubscribe[T], _ <: R])" -> "[TODO]",
"fromCallable(Callable[_ <: T])" -> "[TODO]",
Copy link
Member Author

Choose a reason for hiding this comment

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

Any better name in Scala instead of fromCallable?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can't we just use Observable.defer(Observable.just(expensiveComputation))? If yes, can you add an example for this to RxScalaDemo?

Copy link
Member Author

Choose a reason for hiding this comment

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

It works as well. Agree that we don't need to add a new method for it.

@zsxwing
Copy link
Member Author

zsxwing commented Nov 25, 2015

CC @samuelgruetter

@zsxwing zsxwing changed the title Upgrade to RxJava 1.0.16 Upgrade to RxJava 1.0.17 Dec 12, 2015
@@ -2,7 +2,7 @@ language: scala
jdk:
- oraclejdk7
script:
- sbt +test +examples/test
- sbt +test +examples/test +doc
Copy link
Member Author

Choose a reason for hiding this comment

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

Also add doc to the build script so that we can test it for PRs

@zsxwing
Copy link
Member Author

zsxwing commented Dec 13, 2015

@samuelgruetter could you take a look?

f(t1).asJavaObservable
}
}, capacityHint))
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

In def flatMap[R](maxConcurrent: Int, f: T => Observable[R]): Observable[R], we have the integer as the first argument, and the function as the second argument. Any reason why to do it differently here? And do you know why they put the function first in RxJava?

Copy link
Member Author

Choose a reason for hiding this comment

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

Just forgot we moved maxConcurrent as the first parameter in #166. Will updated it.

And do you know why they put the function first in RxJava?

I guess it just followed the signature in Rx .Net (https://msdn.microsoft.com/en-us/library/hh229923(v=vs.103).aspx)

@zsxwing
Copy link
Member Author

zsxwing commented Dec 15, 2015

Updated

@samuelgruetter
Copy link
Collaborator

LGTM, thanks a lot @zsxwing :)

zsxwing added a commit that referenced this pull request Dec 16, 2015
@zsxwing zsxwing merged commit c941840 into ReactiveX:0.x Dec 16, 2015
@zsxwing zsxwing deleted the rxjava-1.0.16 branch December 16, 2015 04:25
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