Skip to content

mitchsvik/AsynchronousProgramming

 
 

Repository files navigation

AsynchronousProgramming

See four examples and execute them. Create asynchronous analogues of Array.forEach

Parallel execution

// 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
};

Sequential execution

// 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
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy