ObserveOnSchedulerCurrentThread
ObserveOnSched is a scheduling mechanism within reactive programming frameworks, particularly known from RxJava and Rx.NET. Its primary purpose is to control which thread or scheduler is used for observing emissions from an Observable or IObservable. When an Observable emits a value, an Observer receives that value. The ObserveOnSched operator intercepts these emissions and schedules them to be delivered to the Observer on a specified Scheduler.
This allows developers to decouple the thread on which the Observable performs its work from the thread
The choice of Scheduler is critical and depends on the application's needs. Common Schedulers include Schedulers.io()