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

fromCallable in "Convert functions to Observable" #3

Open
sebaslogen opened this issue Mar 13, 2016 · 1 comment
Open

fromCallable in "Convert functions to Observable" #3

sebaslogen opened this issue Mar 13, 2016 · 1 comment

Comments

@sebaslogen
Copy link
Contributor

Reading the defer+just solution I remembered there is a fromCallable() in Rx, wouldn't solve the problem described in a simpler way?

http://reactivex.io/documentation/operators/start.html

http://artemzin.com/blog/rxjava-defer-execution-of-function-via-fromcallable/

Is there any advantage in using defer+just instead of fromCallable in your example?

@mgp
Copy link
Owner

mgp commented Mar 16, 2016

Huh, interesting! I think when we were developing the Khan Academy Android app, fromCallable wasn't yet implemented? (We also had a slight aversion to using any function that was annotated @Experimental.)

I will investigate to see if there are any differences, and update the item to specify fromCallable if there are not! Thank you for reporting this!

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

No branches or pull requests

2 participants