doc/readme.md
Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators.
Data sequences can take many forms, such as a stream of data from a file or web service, web services requests, system notifications, or a series of events such as user input.
Reactive Extensions represents all these data sequences as observable sequences. An application can subscribe to these observable sequences to receive asynchronous notifications as new data arrive.
RxJS has no dependencies which complements and interoperates smoothly with both synchronous data streams such as iterable objects in JavaScript and single-value asynchronous computations such as Promises as the following diagram shows:
<center> <table> <th></th><th>Single return value</th><th>Multiple return values</th> <tr> <td>Pull/Synchronous/Interactive</td> <td>Object</td> <td>Iterables(Array | Set | Map)</td> </tr> <tr> <td>Push/Asynchronous/Reactive</td> <td>Promise</td> <td>Observable</td> </tr> </table> </center>To put it more concretely, if you know how to program against Arrays using the Array#extras, then you already know how to use RxJS!
<center><table> <thead> <tr><th colspan="2">Example code showing how similar high-order functions can be applied to an Array and an Observable</th></tr> <tr><th>Iterable</th><th>Observable</th></tr> </thead> <tbody> <tr><td><pre><code>getDataFromLocalMemory() .filter(s => s != null) .map(s => s + 'transformed') .forEach(s => console.log(\`next => ${s}\`))</code></pre></td> <td><pre><code>getDataFromNetwork() .filter(s => s != null) .map(s => s + 'transformed') .subscribe(s => console.log(\`next => ${s}\`))</code></pre></td></tr> </tbody> </table></center>There are a number of ways of getting started with RxJS including:
Getting started with the Reactive Extensions for JavaScript is easy. Let's start with the basics here:
Curious on how we designed RxJS? This is covered along with overall guidelines of how your RxJS code should operate. In addition, we have contribution guidelines which set the bar for which we accept contributions.
There are many libraries that make up the Reactive Extensions for JavaScript, so it may be a little daunting at first to know which ones to include. This will serve as a guide for which libraries you might need. For most operations you'll only need rx.lite.js, but you may find you need more operators, so you start with rx.js and add additional files to mix in functionality as you need it.
rx.jsrx.aggregates.jsrx.async.jsrx.binding.jsrx.coincidence.jsrx.experimental.jsrx.joinpatterns.jsrx.testing.jsrx.time.jsrx.virtualtime.jsrx.lite.jsrx.lite.extras.jsrx.lite.aggregates.jsrx.lite.async.jsrx.lite.coincidence.jsrx.lite.experimental.jsrx.lite.joinpatterns.jsrx.lite.testing.jsrx.lite.time.jsrx.lite.virtualtime.jsThere is a large surface area with the Reactive Extensions for JavaScript, so it might be hard to know where to start. This will serve as a guide to answer some of the more basic questions.
Converting your existing code from other libraries can be easy. Many of the concepts you already know from popular libraries such as Bacon.js and Async.js
This section contains the reference documentation for the Reactive Extensions class library.
Rx.CompositeDisposableRx.DisposableRx.RefCountDisposableRx.SerialDisposableRx.SingleAssignmentDisposable