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?
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.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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?
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.
60fps Javascript while you stringify, parse, process, compress and filter 100Mbs of data
Mike Talbot ・ May 25 '20 ・ 9 min read