logoalt Hacker News

astrangelast Tuesday at 10:18 PM1 replyview on HN

> The design goal of structured concurrency is to have a safe way of using all available CPU cores on the device/computer.

That's parallelism. Concurrency is mostly about hiding latency from I/O operations like network tasks.


Replies

gilgoomeshlast Tuesday at 11:02 PM

Network operations are "asynchrony". Together with parallelism, they are both kinds of concurrency and Swift concurrency handles both.

Swift's "async let" is parallelism. As are Task groups.

show 2 replies