Skip to content

Instantly share code, notes, and snippets.

@mattpodwysocki
Created April 20, 2012 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattpodwysocki/2425214 to your computer and use it in GitHub Desktop.
Save mattpodwysocki/2425214 to your computer and use it in GitHub Desktop.
// Create observable for a single value
var observable = Rx.Observable.Return(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