Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
// Create observable for a single value
var observable = Rx.Observable.returnValue(42);
// Subscribe to Observable
var subscription = observable.subscribe( function (x) {
console.log(x);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment