0PricingLogin
Kotlin Multiplatform Academy · Lesson

Suspend Functions as Swift async

Consume Kotlin coroutines from Swift concurrency.

Suspend, Meet async

A Kotlin suspend function is exposed to Swift as an async method, so iOS can await it with native Swift concurrency.

suspend fun loadUser(): User

No Callbacks Needed

Older bridges forced completion handlers. Modern KMP maps suspend straight to async, so Swift code stays clean and linear.

All lessons in this course

  1. How Kotlin Maps to Objective-C
  2. Suspend Functions as Swift async
  3. Collect Flows from Swift
  4. @ObjCName & Swift-Friendly APIs
← Back to Kotlin Multiplatform Academy