forked from ReactiveX/RxJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Async Operators
David Gross edited this page Jan 12, 2015
·
11 revisions
The following operators are part of the distinct rxjava-async
module. They are used to convert synchronous methods into Observables.
-
start( )
— create an Observable that emits the return value of a function -
toAsync( )
orasyncAction( )
orasyncFunc( )
— convert a function or Action into an Observable that executes the function and emits its return value -
startFuture( )
— convert a function that returns Future into an Observable that emits that Future's return value -
deferFuture( )
— convert a Future that returns an Observable into an Observable, but do not attempt to get the Observable that the Future returns until a Subscriber subscribes -
forEachFuture( )
— pass Subscriber methods to an Observable but also have it behave like a Future that blocks until it completes -
fromAction( )
— convert an Action into an Observable that invokes the action and emits its result when a Subscriber subscribes -
fromCallable( )
— convert a Callable into an Observable that invokes the callable and emits its result or exception when a Subscriber subscribes -
fromRunnable( )
— convert a Runnable into an Observable that invokes the runable and emits its result when a Subscriber subscribes -
runAsync( )
— returns aStoppableObservable
that emits multiple actions as generated by a specified Action on a Scheduler
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