Skip to content

Instantly share code, notes, and snippets.

@laser
Last active December 29, 2015 11:29
Show Gist options
  • Save laser/7664470 to your computer and use it in GitHub Desktop.
Save laser/7664470 to your computer and use it in GitHub Desktop.
J.js
sync(function* (resume) {
var oneAndTwo = yield [_get("test1.txt", resume()), _get("test2.txt", resume())]
var three = yield _get("test3.txt", resume())
log(oneAndTwo[0] + " - " + oneAndTwo[1] + " " + three)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment