| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
See four examples and execute them. Create asynchronous analogues of Array.forEach
// Array of functions
let fns = [readConfig, selectFromDb, getHttpPage, readFile];
// Call example
parallelAsync(fns, () => { console.log('Done'); });
// Implementation
function parallelAsync(fns, done) {
// TODO: implement parallel ecexution
};// Array of functions
let fns = [readConfig, selectFromDb, getHttpPage, readFile];
// Call example
sequentialAsync(fns, () => { console.log('Done'); });
// Implementation
function sequentialAsync(fns, done) {
// TODO: implement sequential execution
};| Back | FazBrowse Home | New Git URL |