Skip to content

Instantly share code, notes, and snippets.

@mattpodwysocki
Created May 21, 2012 15:28
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/2762919 to your computer and use it in GitHub Desktop.
Save mattpodwysocki/2762919 to your computer and use it in GitHub Desktop.
// 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