Adding Asynchronicity
Explore how to add asynchronicity in RxJava by using threads to run functions on separate threads from the caller. Understand thread safety requirements and the impact on event emission. This lesson helps you grasp basic multithreading concepts before moving on to using RxJava Schedulers.
We'll cover the following...
We'll cover the following...
Using Thread
There are many ways we can add asynchronicity so that the function within .create() is invoked on a separate thread from the calling thread. As mentioned earlier, RxJava is agnostic regarding how asynchronicity is accomplished. One way is to make use of a basic Thread.
Let’s take our ...