Post #1817909
2026-04-28 14:32 UTC
I just noticed data was loading slow from network calls „a“ and „b“ because
_ = await (a, b)
runs them sequentially. I was pretty sure I tested with 5.x that it was equivalent to
async let aN = a
async let bN = b
await (aN, bN)
Is this a consequence of #Swift‘s #Concurrency changes up until 6.3, or was I just wrong?
Replies (2)
-
@finestructure@mastodon.social 2026-04-28 17:22
@sense@mastodon.social Pretty sure you always needed the `async let` in order for it to form implicit Tasks and allow them to run concurrently. It's tricky to know whether stuff is actually concurrently unless you test it, so perhaps you never noticed before? Happened to me a few times.
-
@mattiem@mastodon.social 2026-04-28 17:23
@sense@mastodon.social I don’t think it has ever worked that way…