Skip to content

Instantly share code, notes, and snippets.

@CrabDude
Created September 24, 2013 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CrabDude/6691755 to your computer and use it in GitHub Desktop.
Save CrabDude/6691755 to your computer and use it in GitHub Desktop.
var fs = require('fs')
var $$ = require('$$')
$$(function*($) {
var fileNames = ['A.txt', 'B.txt', 'C.txt', 'D.txt']
for (fileName in fileNames) {
$(fs.readFile(fileName))
}
var fileDataArray = yield
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment