The ultimate solution of writing asyncronous code in a beautiful way.
The ultimate solution of writing asyncronous code in a beautiful way.
npm install rush
var rush = require'rush'; rush n: 0 data: thisn++; fsreadFile'file1.txt' this thisdatapushdata; ; fsreadFile'file2.txt' this thisdatapushdata; ; thisn++; fsreadFile'file3.txt' this thisdatapushdata; ; console.logn; // => 2 // this.data should have 3 items: // (data of) file1, file2, file3 or file2, file1, file3. ;
MIT