Skip to content
RED SAG Skills
mediumStudy question · answer published in iOS interview questions, so no pointsswiftconcurrency

Two async let calls

fetchProfile() takes 1 s and fetchOrders() takes 2 s. How long does loadScreen() take?

func loadScreen() async throws -> Screen {
    async let profile = fetchProfile()
    async let orders = fetchOrders()
    return try await Screen(profile: profile, orders: orders)
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions