1

Kotlin Coroutines: Fundamentals [SUBSCRIBER]

 7 months ago
source link: https://www.kodeco.com/41296291-kotlin-coroutines-fundamentals
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Kotlin Coroutines: Fundamentals

GroupGroupGroupGroupGroupGroupGroupGroupGroupGroupShapeGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroup

Lock in your discount: 60% off Kodeco Bootcamps!

Transform into a job-ready developer for iOS or Android in only 15 weeks.
Act fast — discount rates end soon!

Home Kotlin Coroutines: Fundamentals
domain-android-793ce8745970e3fee80e798cb3371b5ec31d3d2678867c3b6f7bb23bb16a7be9.svg
original.png
media-course-android-f507e1136da0a1d634e8be2a45c86f9b374d4f6e4ecdf867ad73d4bac611b26e.svg

Home Kotlin Coroutines: Fundamentals

Kotlin Coroutines: Fundamentals

Feb 14 2024 , Kotlin 1.9, Android 13, Android Studio Giraffe

Learn the fundamentals about threads and coroutines, along with the basics of the Kotlin Coroutines framework.

By .

Who is this for?

Beginner Android developers who want to learn about threading, what coroutines are, and how to launch a coroutine in Android.

Covered concepts

  • Blocking & Non-Blocking calls
  • Synchronous vs. Asynchronous code
  • Threads
  • Main or UI Thread
  • Posting data to the UI
  • Kotlin Coroutines
  • Coroutine Builders
  • Dispatchers
  • Suspending functions
  • Coroutine contexts
  • Coroutine scopes
  • Nested coroutines

Part 1: Getting started with Coroutines

Learn about blocking calls, background processing, creating threads and why using coroutines is increasingly popular!

Discover the purposes of coroutines, and how they can help you write asynchronous code in a simple way.

Learn about suspending functions, differences between suspending and blocking functions, and how delay() works.

Implement a simple coroutine calling a suspending function, and learn how to use the suspend modifier in practice.

Part 2: Deep Dive into Coroutines

Understand the coroutine contexts and dispatchers, and how to choose the right ones for your needs.

Use Coroutine Builders: launch, async, runBlocking.

Learn about coroutine scopes and the structured concurrency in Kotlin Coroutines.

Understand the coroutine jobs, their hierarchy and learn how to cancel a coroutine and its children.

Learn about async/await, how to use them to execute multiple coroutines in parallel.

Learn about coroutine exception handlers, and how to debug the coroutines.

Use all the knowledge you’ve gained to implement an API call using coroutines with exception handling in a composable.

Contributors

Over 300 content creators. Join our team.

All videos. All books.
One low price.

A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.

Learn more

All videos. All books.
One low price.

Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalogue of 50+ books and 4,000+ videos.

Learn more

The largest and most up-to-date collection of courses and books on iOS, Swift, Android, Kotlin, Flutter, Dart, Server-Side Swift, Unity, and more!

© 2024 Kodeco Inc

Kodeco and our partners use cookies to understand how you use our site and to serve you personalized content and ads. By continuing to use this site, you accept these cookies, our privacy policy and terms of service .


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK