Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 994 Bytes

File metadata and controls

26 lines (18 loc) · 994 Bytes

Splitting Observables with RxJava and Java 8

SplittingOddEvenSyncExample

SplittingOddEvenAsyncExample

  • How to "split" one Observable in multiple

    • the even numbers

    • the odd numbers

  • Handle each even number async and slowly in a separate thread

  • Handle each odd number async and very slowly in a separate thread

Observations:

  • The "even number handling thread" finishes earlier than the "odd number handling thread"