logoalt Hacker News

repelsteeltjetoday at 9:29 AM1 replyview on HN

Beware, they are different concepts.

Threads offer concurrent execution, async (futures) offer concurrent waiting. Loosely speaking, threads make sense for CPU bound problems, while async makes sense for IO bound problems.


Replies

groundzeros2015today at 1:12 PM

Why? You write the same code with async await but with a keyword at the beginning of every function.

show 1 reply