Last active
August 1, 2016 23:51
-
-
Save codemilli/4adffd70a12cde5758e9062255c58181 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var observableStream = Rx.Observable.create(function(observer) { | |
observer.onNext(1); | |
}); | |
var subscriber = observableStream.subscribe(function(data) { | |
console.log('data', data); | |
if (data) { | |
subscriber.dispose(); | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment