`suspend` means the function can pause without blocking the thread and resume later. It does NOT automatically mean “runs on a new thread” — the dispatcher decides where it runs.
suspend fun loadUser(id: String): User {
// can suspend here (e.g., awaiting IO)
return api.getUser(id)
}Expanding on the short answer — what usually matters in practice:
Here’s an additional example (building on the short answer):
suspend fun loadUser(id: String): User {
// can suspend here (e.g., awaiting IO)
return api.getUser(id)
}