News for hackers. Stuff that matters.
Re:Breaking Up with Long Tasks or: how I learned to group lo... by johannes1234321 on Saturday January 04, 2025 @05:11AM (#42593827)
Parallel code runs parallel at the same time (on different CPU cores etc.)

Async code is scheduling different parts after each other. It's still running in a single thread (maybe on same core)

aaync essentially is non-blocking IO in many cases. It can also ahieldnsome logic running in a diffefent thread, hidden from that segment of code.

Re:Breaking Up with Long Tasks or: how I learned to group lo... by 333c on Saturday January 04, 2025 @05:47AM (#42593933)
I think your explanation of async, while true, doesn't get at what's special about async. The explanation seems true of (non-parallel) concurrency as well (for example, thread scheduling on a one-core CPU).