Skip to content

Conversation

@zsxwing
Copy link
Member

@zsxwing zsxwing commented Nov 22, 2015

No description provided.

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
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?

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