This scheduler runs the code on current thread. So if you have a code running on the main thread, this scheduler will add the code block on the queue of main thread. It is quite similar to Immediate Scheduler as it also blocks the thread, however, it waits for the current task to execute completely(while ImmediateScheduler invokes the task right away). Trampoline schedulers come in handy when we have more than one observable and we want them to execute in order

I personally only use it in unit testing, replacing the good old immediate() :)

Hiring Android engineer Clean coder, walker & biker. Hater of inefficiency

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store