#12 RxJava - Observable fromCallable - Being Lazy
Channel: Mithu Roy
Date: 31/03/2019

Namaste everyone, in this video we've created Observables using a very similar factory method like Observable.defer() and it is called Observable.fromCallable().

Do you know that if you pass any expression(e.g.: 1/0, which is going to throw an exception) through the Observable.just() then you get an error, and your subscribers don't even get this error even if they put the onError() function body. To deal with this issue we've something called Observable.fromCallable(). There are other use cases of this awesome factory method, so watch the video till the end.

This video episode is a part of an ongoing RxJava tutorial series called RxJavaAllInOne.
You can find the playlist from here 👇🏾
https://bit.ly/RxJavaAllInOne

You can find the source code of this video series here: 
https://github.com/MRoyDroid/rxjava-all-in-one/tree/S01E12

Previous Video 👇🏾
#11 RxJava - Observable.defer() - Care for state changes?
https://youtu.be/RnU9nGJcbfo

Next Video 👇🏾
#13 RxJava - Observable interval() - Hot or Cold?
https://youtu.be/k0KQCF3ImuQ

Subscribe to this YouTube channel and hit that bell icon so you don't miss any notification regarding future RxJava tutorial videos that are going to be published every Sunday.

Microphone Used: Blue Snowball ICE
https://amzn.to/2FL7TW0 ⬅️ Affiliate Link
Check out the review here:
http://bit.ly/2dhJhrU

If you've any queries or questions you can find me here:

Twitter: https://twitter.com/themithuroy
Facebook: https://facebook.com/mroydroid
Instagram: https://instagram.com/themithuroy
LinkedIn: https://www.linkedin.com/in/themithuroy
Github: https://github.com/themithuroy