Created
May 21, 2012 15:28
-
-
Save mattpodwysocki/2762919 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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