Introduction to event loop and ReactiveX