DEV Community

Discussion on: Playing with promises and concurrency in TypeScript

Collapse
 
stereobooster profile image
stereobooster

Running the tasks in parallel

We need to specify which tasks can actually run in parallel - io tasks and code out of the main thread e.g. WebWorkers (browser) or Worker threads (NodeJS). Other tasks would run concurrently, but not parallel because of event loop.

Collapse
 
javier_toledo profile image
Javier Toledo

Right, I'm only talking about concurrency here, I'll change the wording in the article to make sure it doesn't lead to confusion. Thanks for pointing it out!