← Back to notebook index

Notebook Topic

Concurrency

English topic guide inspired by the original iOS Developer Notebook, expanded for both iOS and Android teams.

What this topic covers

Execution checklist

iOS implementation notes

Android implementation notes

Code examples

Swift

await withTaskGroup(of: Void.self) { group in
  group.addTask { await syncProfile() }
  group.addTask { await syncSettings() }
  await group.waitForAll()
}

Kotlin

coroutineScope {
  val profile = async { syncProfile() }
  val settings = async { syncSettings() }
  awaitAll(profile, settings)
}

Reference links

Related topics