Master subscribeOn() and observeOn() in RxJava

Ғылым және технология

RxJava ships with a powerful set of tools to switch a workload across multiple threads with its own, built-in schedulers. It is important to understand how to do this properly with the subscribeOn() and observeOn() functions within your reactive call chain. Otherwise, you can create unintended behaviors and elusive bugs.
This video teaches you the fundamental concepts of how RxJava flows work and how to ensure you are switching threads properly and when it is really necessary.
----------
Table of Contents:
⏩ 00:00 Introduction
⏩ 00:40 The Risks of Threads
⏩ 01:25 Understanding the Subscription Flow
⏩ 02:34 Understanding the Observer Flow
⏩ 03:50 observeOn() in Action
⏩ 05:27 subscribeOn() in Action
⏩ 06:27 subscribeOn() and observeOn()
⏩ 08:11 Multiple subscribeOn() Calls
⏩ 08:55 Conclusion
Relevant links:
- Skillshare - Build Foldable and Responsive Android Apps with Jetpack Compose: olv.to/one-app
- When Multiple subscribeOn()s Do Have Effect: olv.to/multi-subscribeon
#rxjava #reactiveprogramming #schedulers #observeon #subscribeon #android #kotlin #mobile #rxandroid
Studio setup:
** Cameras **
🎥 Sony Alpha 7 III Full-Frame Camera: go.oliverspryn.com/sony-a7-iii
🎥 Sony Alpha ZV-E10: go.oliverspryn.com/sony-zv-e10
🎥 Logitech Brio 4K Webcam: go.oliverspryn.com/logitech-brio
** Lenses **
🎥 Sony FE 24-70 mm F2.8 G Master Full Frame Lens: go.oliverspryn.com/sony-fe-24...
🎥 Sony FE 20mm F1.8 G Full-Frame Lens: go.oliverspryn.com/sony-fe-20...
** Recording Equipment **
💻 Elgato Cam Link Pro Internal Camera Capture Card: go.oliverspryn.com/elgato-cam...
💻 Elgato Stream Deck MK.2 Video & Streaming Control Panel: go.oliverspryn.com/elgato-str...
🎥 GVM Teleprompter: go.oliverspryn.com/teleprompter
** Lighting **
💡 Godox TL60 4-Light Kit RGB Tube Lights: go.oliverspryn.com/godox-tube...
💡 Elgato Key Light: go.oliverspryn.com/elgato-key...
💡 Elgato Key Light Air: go.oliverspryn.com/elgato-key...
💡 GVM Umbrellas, Light Stands, and Softbox Lighting Kit: go.oliverspryn.com/gvm-lighti...
** Microphone **
🎤 Blue Yeti X: go.oliverspryn.com/blue-yeti-x
** Other **
📃 Savage Seamless Background Paper - #56 Fashion Gray: go.oliverspryn.com/savage-bac...
🎥 Datacolor SpyderCHECKR 24 Color Calibration Card: go.oliverspryn.com/spyderchec...
** Software **
🖥 Adobe Premiere Pro: go.oliverspryn.com/adobe-prem...
🖥 Adobe Photoshop: go.oliverspryn.com/adobe-phot...
🖥 Adobe Illustrator: go.oliverspryn.com/adobe-illu...
🖥 TechSmith® Camtasia®: go.oliverspryn.com/techsmith-...
🖥 TechSmith® Snagit®: go.oliverspryn.com/techsmith-...
** Sounds, Stock video, and Templates **
🎥 Envato Elements: go.oliverspryn.com/envato-ele...

Пікірлер: 7

  • @Papabevegemabody
    @Papabevegemabody Жыл бұрын

    Great! I'm currently trying to learn RxJava concepts and this video is happened to be very useful for me! Keep up the good work and thank you!

  • @nicholasmiller5731
    @nicholasmiller5731 Жыл бұрын

    Great video. I now think I understand how these operators work! Thanks!

  • @abelmengesha3773
    @abelmengesha3773 Жыл бұрын

    I do have a feeling that, you're going to be the most loved instructor ever. Please do more videos like this. 💌💌

  • @abelmengesha3773

    @abelmengesha3773

    Жыл бұрын

    @@tldrandroid I can't wait to see the whole series, I have some RxJava experience but the way you explain it is unparalleled. Please add examples on testing RxJava based projects into the series. 👍👍👍

  • @abelmengesha3773

    @abelmengesha3773

    Жыл бұрын

    @@tldrandroid Yes, you're right. I came across your channel searching for "Unit Testing RxJava". I would love to see more examples on that. I've subscribed and would love to see what you'll publish in the future. Keep up the great work.

  • @ankitadutta5168
    @ankitadutta5168 Жыл бұрын

    Really a great video on subscribeOn and observeOn. I have one question - in the examples why you've used Thread.sleep()?

  • @ankitadutta5168

    @ankitadutta5168

    Жыл бұрын

    @@tldrandroid thanks for your answer!! I really appreciate your quick response 😀 waiting for more awesome videos!!

Келесі