forked from ReactiveX/RxJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Creating Observables
David Karnok edited this page Aug 24, 2016
·
83 revisions
This page shows methods that create Observables.
-
just( )— convert an object or several objects into an Observable that emits that object or those objects -
from( )— convert an Iterable, a Future, or an Array into an Observable -
repeat( )— create an Observable that emits a particular item or sequence of items repeatedly -
repeatWhen( )— create an Observable that emits a particular item or sequence of items repeatedly, depending on the emissions of a second Observable -
create( )— advanced use only! create an Observable from scratch by means of a function, considerfromAsyncinstead -
fromAsync()— create safe, backpressure-enabled, unsubscription-supporting Observable via a function and push events. -
defer( )— do not create the Observable until a Subscriber subscribes; create a fresh Observable on each subscription -
range( )— create an Observable that emits a range of sequential integers -
interval( )— create an Observable that emits a sequence of integers spaced by a given time interval -
timer( )— create an Observable that emits a single item after a given delay -
empty( )— create an Observable that emits nothing and then completes -
error( )— create an Observable that emits nothing and then signals an error -
never( )— create an Observable that emits nothing at all
A Netflix Original Production
Tech Blog | Twitter @NetflixOSS | Twitter @RxJava | Jobs
- Introduction
- Getting Started
- JavaDoc
- How to Use RxJava
- Additional Reading
- The Observable
- Operators (Alphabetical List)
- Async
- Blocking Observable
- Combining
- Conditional & Boolean
- Connectable Observable
- Error Handling
- Filtering
- Mathematical and Aggregate
- Observable Creation
- String
- Transformational
- Utility Operators
- Implementing Custom Operators, previous
- Backpressure
- Error Handling
- Plugins
- Schedulers
- Subjects
- The RxJava Android Module
- RxJava 2.0
- How to Contribute