Skip to content

Instantly share code, notes, and snippets.

@mattpodwysocki
Created September 24, 2015 18:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattpodwysocki/80b51dc67487aac6baf7 to your computer and use it in GitHub Desktop.
Save mattpodwysocki/80b51dc67487aac6baf7 to your computer and use it in GitHub Desktop.
var source = Rx.Observable.fromArray([1,2,3])
.flatMap(async function (x, i) {
var result = await Promise.resolve(x * i);
return result;
});
source.subscribe(function (x) { console.log(x); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment