Get the latest tech news

Playground Wisdom: Threads Beat Async/Await


Musings about async await again and why I think virtual threads are a better model.

If you program in that, you're almost transcending to a higher plane and looking down to the folks who are stitching together if statements, for loops, make side effects everywhere, and are doing highly inappropriate things with IO. In fact, one of the core challenges that many async/ await-based programs suffer from is bloating buffers because there is an inability to exert back pressure (I once again point you to my post on that). It brought some relief from callback hell, but it also saddled us with new issues like colored functions, new back-pressure challenges, and introduced new problems all entirely such as promises that can just sit around forever without resolving.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Playground Wisdom

Playground Wisdom