ScalaObservable
Value members
Concrete methods
we not named foldLeft
to indicate that Observable may emit items "out of order" (not like Future)
Ex: Observable.from(2, 1).flatMap(Observable.timer(_ seconds)).fold("")(_ + _)
is Observable of "12" (not "21")
we not named foldLeft
to indicate that Observable may emit items "out of order" (not like Future)
Ex: Observable.from(2, 1).flatMap(Observable.timer(_ seconds)).fold("")(_ + _)
is Observable of "12" (not "21")
- Note
result may "out of order"
scala concatMap. We can't name concatMap
because scala compiler will not implicitly pick this method.
scala concatMap. We can't name concatMap
because scala compiler will not implicitly pick this method.
- Note
If don't need in-order then you should use scFlatMap
scala flatMap. We can't name flatMap
because scala compiler will not implicitly pick this method.
scala flatMap. We can't name flatMap
because scala compiler will not implicitly pick this method.
- Note
result may "out of order". If need in-order then you should use scConcatMap
scala map. We can't name map
because scala compiler will not implicitly pick this method
scala map. We can't name map
because scala compiler will not implicitly pick this method