TGViewer
Mobile Native ️️ Mobile Native ️️ @mobile_native · 5.38K subscribers
Post #793 3.62K
Kotlin Coroutines Best practices

Еще одна статья с best practices по корутинам.

👉 Don’t use async with an immediate await
👉 Consider cancelling scope children
👉 Use Dispatchers.Main.immediate instead of Dispatchers.Main
👉 yield
👉 Use awaitAll
👉 Avoid using Job builder
👉 Functions that return Flow should not be suspending

Читать (En)
  • ❤ 13
  • 👍 8
  • 🔥 1
More from @mobile_native
  1. Sep 9, 2026🤳 Как работает мобильная разработка с AI под капотом — интенсивы от Podlodka Crew Конфере…
  2. Jul 22, 2026Всем привет! Давненько меня не было в тг, давно уже ничего не публиковал в каналах – вот р…
  3. Jul 22, 2026Привет! Ну ты как там? Как дела, что нового? 😃
  4. Apr 19, 2026Kotlin Coroutine bridges: converting any callback-based Android API to suspend functions П…
  5. Apr 19, 2026Маяк в пустыне: Kotlin DSL для Android-шейдеров В статье автор рассказывает про сложности…
  6. Apr 8, 2026Разбираем Remote Compose: как Google предлагает строить BDUI Обзорная статья от ребят из А…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →