Created
February 6, 2015 15:43
-
-
Save larroy/000d54d8feefee46a08c 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 observable = Rx.Observable.create(function (observer) { | |
var source = new Source | |
while (source.hasNext()) | |
observer.onNext(source.getNext()); | |
}); | |
/************* without having to close over source ************/ | |
var observable = Rx.Observable.create(); | |
var source = new Source | |
while (source.hasNext()) | |
observable.emitNext(source.getNext()) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment