Async, LINQ, and the Future of RxJS
For standard events the Rx.Observable.fromEvent function simply requires the object holding the event and the event name. For custom events, Rx.Observable.fromEventPattern allows you to pass in separate functions for attaching and detaching the event handler.
Converting a promise to an observable is just as easy. After constructing the promise, wrap it with the Rx.Observable.fromPromise function.
On the roadmap for the future versions is query expression parsing. Like .NET’s LINQ, this will allow developers to create queries at runtime against data sources such as IndexedDB and OData. While OData should cover most scenarios, this could conceivably open the door for the creation of other LINQ-like providers.
Another concern that the Rx wants to address is back pressure. This would allow the Observer to throttle back the source when the incoming messages are too frequent for it to handle.
Shane Hastie on Distributed Agile Teams, Product Ownership and the Agile Manifesto Translation Program
Shane Hastie Apr 17, 2015