Skip to Content
Spring 5.0 Projects
book

Spring 5.0 Projects

by Nilang Patel
February 2019
Intermediate to advanced
442 pages
11h 46m
English
Packt Publishing
Content preview from Spring 5.0 Projects

Other ways to get Observable

So far we have seen how to get Observable with just(), create(), and interval(). However, there are other sources to get the Observable. You can get full details about each source from at:https://github.com/ReactiveX/RxJava/wiki/Creating-Observables:

  1. range: If you want to emit a consecutive range of integers, you can use the Observable.range(int from, int to) call. As its name suggests, it will start emitting a number from the start value in increments until the end count is reached.
  2. empty: In a rare situation, you need to create Observable that emits nothing and calls onComplete(). In this case, you can use this source type with the Observable.empty() call. 
  3. never: It is equivalent to empty with the difference ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Spring Boot 2.0 Projects

Spring Boot 2.0 Projects

Mohamed Shazin Sadakath
Spring 5.0 By Example

Spring 5.0 By Example

Claudio Eduardo de Oliveira
Spring 5.0 Cookbook

Spring 5.0 Cookbook

Sherwin John C. Tragura
Pro Spring 5: An In-Depth Guide to the Spring Framework and Its Tools

Pro Spring 5: An In-Depth Guide to the Spring Framework and Its Tools

Iuliana Cosmina, Rob Harrop, Chris Schaefer, Clarence Ho

Publisher Resources

ISBN: 9781788390415Supplemental Content