concept flatMap in category android

appears as: flatMap, flatMap
RxJava for Android Developers

This is an excerpt from Manning's book RxJava for Android Developers.

  • flatMap is the simplest way to combine observables, though you have to be careful not to expect to retain the order of what it produces.
  • concatMap is slightly more exotic and doesn’t usually have the best behavior because it prevents simultaneous execution. The same functionality can be achieved by using flatMap and making a specific ordering step after the results are ready. This way, the requests don’t have to wait for each other.