This is part of the "Android Data and Networking" learning path. View Path

Kotlin Coroutines: Fundamentals

Apr 30 2020 · Video Course (34 mins) · Beginner

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

5/5 8 Ratings

Version

  • Kotlin 1.3, Android 10, Studio 3.5

Beginning Threads

Introduction

4:43 Free

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

1

Explore the project structure and functionality, run the project to see the UI, and prepare for next episodes.

2

Use an HTTP connection and an input stream, to download a cute owl image and display it in your app.

3

Create threads to move the blocking work away from the main thread, to the background.

4

Post the result to the main thread, using native Android mechanisms - Handlers and runOnUiThread().

5

Conclusion

1:56

Review the concepts learned so far, and prepare for the next part of the course - Kotlin Coroutines!

6

Beginning Coroutines

Get started with some basic theoretical concepts of Kotlin Coroutines, and why they are becoming increasingly popular.

7

Launch a coroutine, using coroutine builders, and learn how to replace manual thread creation.

8

Use different dispatchers, to change the threads in coroutines, and learn what each dispatcher has to offer.

9

Learn how to post the data to the main thread, from anywhere, using the main dispatcher.

10

Conclusion

1:31

Review all the information about threading and coroutines you've gained, and learn about future courses you can explore on the topic!

11

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
  • Background processing
  • Worker Threads
  • Main or UI Thread
  • Runnables
  • Posting data to the UI
  • Kotlin Coroutines
  • Coroutine Builders
  • Dispatchers
  • Thread pools
  • Suspending
  • Nested coroutines

Contributors

Comments