-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Implement shorter toBlocking as shorter alias for toBlockingObservable. #1224
Conversation
RxJava-pull-requests #1131 SUCCESS |
I s this really causing you pain? Autocomplete will type the few extra characters for you, when reading code toBlockingObservable should stand out like a sore thumb. DANGER. |
@headinthebox actually not for me, but for our users. 99% of them are on blocking-type applications and will need to call that often. Even in unit tests it is very long and doesn't help with readability. So I'm all in for a shorter version. |
I think Also, this is more similar to how we will likely someday implement |
I wont block this ;-). Just want to make sure people understand that blocking defeats the purpose of Rx. |
Yes it certainly does ... but what I've found is that enabling an API with Rx is made far easier when we can give people who aren't ready to adopt async an easy way out. An API can always go from async to sync, but not sync to async, so anything that removes roadblocks to getting async APIs in place is helpful. |
I kind of wish we didn't have |
Implement shorter toBlocking as shorter alias for toBlockingObservable.
Should we deprecate |
I guess so; too many aliases indicate indecisiveness of the API designers ;-) |
Exactly. |
As per discussion at ReactiveX#1224 (comment)
Done in #1233 |
Fixes #1220