rx-thenable

1.0.0-alpha.2 • Public • Published

rx-thenable

Patches RxJS to allow Observables to be consumed as Promises:

var Rx = require('rx');
require('rx-thenable')(Rx);
 
Rx.Observable.range(0, 5).then(function(result) {
    // on result
  }, function(err) {
    // on err
  });

This functionality is only made available if the environment supports Promises/A+ conformant promises.

Dependents (0)

Package Sidebar

Install

npm i rx-thenable

Weekly Downloads

1

Version

1.0.0-alpha.2

License

Apache-2.0

Last publish

Collaborators

  • jacobwindsor
  • ariutta
  • alexanderpico
  • larsgw