DEV Community

Discussion on: 9 Steps to Get 100 Stars on GitHub

Collapse
 
calvintwr profile image
calvintwr • Edited

Very cool. I gave a star too! This post earns you stars too lol.

Can I steal a question? I thought that async functions don’t block main threads... so anything running inside of the async function shouldn’t too?

Collapse
 
miketalbot profile image
Mike Talbot ⭐

Hey Calvin thanks!

So async functions just wait for each of the operations and then block the main thread again. I wrote the following that shows how js-coroutines works and why it makes a big difference.