Is there any way in Swift to avoid this?
async let foo = fetchFoo()
async let bar = fetchBar()
let combined = try await (foo, bar) // erases error type, even if fetchFoo() and fetchBar() return the same explicit error type
Is there any way in Swift to avoid this?
async let foo = fetchFoo()
async let bar = fetchBar()
let combined = try await (foo, bar) // erases error type, even if fetchFoo() and fetchBar() return the same explicit error type
If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/nicklockwood/statuses/116160746755503788 on your instance and quote it. (Note that quoting is not supported in Mastodon.)