Course Overview
This course is your complete guide into the world of Kotlin Coroutines in Android. By the end of this course, you'll know how to use Coroutines to write reliable, maintainable and responsive Android applications.
The philosophy of this course is "learn by coding", so you'll be asked to solve a series of carefully designed, hands-on exercises. These exercises are built into a tutorial Android application, so they accurately reflect the "real world" use cases that you'll encounter in real Android apps.
Even though the main goal of this course is to give you practical skills, it also covers the theory behind Kotlin Coroutines framework at a more conceptual level. In particular, you're going to learn what Structured Concurrency is, what benefits it provides and how Coroutines support this powerful paradigm.
These aspects of Kotlin Coroutines framework are covered in this course:
Coroutines as concurrency framework
Suspending vs blocking functions
Coroutine Scope, Context and Jobs hierarchy
Coroutines cancellation
Exceptions handling inside Coroutines
Structured Concurrency
Unit testing with Coroutines
and more...
In this course we go beyond the functionality of Kotlin Coroutines framework itself and also discuss important design considerations that will help you write clean and maintainable code.
Knowledge of Kotlin Coroutines is an essential skill for Android developers. After completing this course, you'll be able to use Coroutines in real-world Android projects, and you'll be ready to answer even the trickiest questions about this framework in job interviews.
So, if you're serious about Android development and you want to master Kotlin Coroutines, this course is perfect for you!
FAQ
FAQ area empty
Course curriculum
Chương 1 Introduction 3 bài · 8 phút
Chương 2 Coroutines Intuition 16 bài · 2 giờ 34 phút
-
UI Thread Blocking 9:02
- Concurrency Học thử 7:07
- Background Threads Học thử 10:47
- Coroutines Basics Học thử 26:45
- Coroutines Basics Nuances Học thử 5:32
-
Exercise 1 8:47
-
Exercise 1 Solution 7:46
-
Coroutines Cancellation Basics 15:18
-
Exercise 2 5:44
-
Exercise 2 Solution 5:19
-
Concurrent Coroutines 18:22
-
Suspension vs Blocking 7:52
-
Coroutine Scope's Children Cancellation 4:58
-
Exercise 3 4:01
-
Exercise 3 Solution 7:28
-
Coroutines Intuition Summary 9:10
Chương 3 Coroutine Scope Cancellation 5 bài · 29 phút
-
Coroutine Scope Cancellation 1:11
-
Scope Cancellation vs Scope's Children Cancellation 8:00
-
Coroutine Scope Inside ViewModel 14:32
-
Coroutine Scope From Kotlin Extensions for ViewModel 3:55
-
Coroutine Scope Cancellation Summary 1:46
Chương 4 Structured Concurrency 11 bài · 2 giờ 2 phút
-
Structured Concurrency Intro 1:26
-
Fibonacci Computation 5:08
-
Concurrent Fibonacci Computation 15:33
-
Concurrent Fibonacci Computation with Callback on UI Thread 8:19
-
Concurrent Fibonacci Computation Using ThreadPoster Library 10:16
-
Structured Concurrency 18:14
-
Concurrent Fibonacci Computation Using Coroutines (Callback) 24:52
-
Concurrent Fibonacci Computation Using Coroutines (Suspending) 17:29
-
Exercise 4 6:47
-
Exercise 4 Solution 6:28
-
Structured Concurrency Summary 7:16
Chương 5 Design with Coroutines 5 bài · 28 phút
-
The Main Rule of Concurrency in Android 5:21
-
Encapsulating Concurrency in Use Cases 10:26
-
Exercise 5 2:20
-
Exercise 5 Solution 5:24
-
Design with Coroutines Summary 4:23
Chương 6 Coroutine Dispatchers 5 bài · 40 phút
-
Coroutine Dispatchers 1:49
-
Main Dispatcher 11:09
-
Background Dispatchers 6:01
-
Unconfined Dispatcher 7:35
-
The Best Dispatching Strategy for Android Applications 13:48
Chương 7 Coroutines Cancellation 8 bài · 1 giờ 11 phút
-
Coroutines Cancellation Intro 1:45
-
Cooperative Cancellation 19:21
-
The Importance of Cancellation Exception 17:39
-
Fragment Lifecycle Bug on Coroutine Cancellation 7:09
-
Exercise 6 2:41
-
Exercise 6 Solution 6:05
-
NonCancellable 12:13
-
Coroutines Cancellation Summary 4:30
Chương 8 Coroutines Mechanics 11 bài · 1 giờ 58 phút
-
Main Coroutines Building Blocks 2:59
-
Coroutines Mechanics Part 1: CoroutineScope and CoroutineContext 17:28
-
Coroutines Mechanics Part 2: CoroutineContext Elements 9:03
-
Coroutines Mechanics Part 3: withContext Function 8:40
-
Coroutines Mechanics Part 4: Jobs Hierarchy 10:20
-
Coroutines Mechanics Part 5: Cancellation Propagation 13:33
-
Coroutines Mechanics Part 6: NonCancellable vs Job() 13:14
-
Exercise 7 5:23
-
Exercise 7 Solution 22:51
-
Exercise 7 Solution Amendment 3:34
-
Coroutines Mechanics Summary 10:44
Chương 9 Parallel Decomposition 8 bài · 1 giờ 13 phút
-
Parallel Decomposition 3:10
-
Exercise 8 11:44
-
Exercise 8 Solution 11:23
-
Shared Mutable State 15:51
-
Async Coroutine Builder 19:02
-
Exercise 9 2:47
-
Exercise 9 Solution 4:43
-
Parallel Decomposition Summary 4:38
Chương 10 Exceptions Handling 10 bài · 1 giờ 15 phút
-
Exceptions Handling Intro 2:20
-
Uncaught Exception in a Coroutine 10:49
-
CoroutineExceptionHandler 7:25
-
Cancellation Chain on Uncaught Exception 10:08
-
SupervisorJob 5:48
-
Exercise 10 3:07
-
Exercise 10 Solution 9:22
-
Uncaught Exception in Async Coroutine 10:06
-
The Best Way to Handle Exceptions in Coroutines 10:15
-
Exceptions Handling Summary 5:33
Chương 11 Course Summary 2 bài · 6 phút
-
Course Summary 4:17
-
Bonus Lecture 1:31
Requirment
-
Basic experience with Android and Kotlin
Outcomes
-
Understand the importance of concurrency in Android applications
-
Use Kotlin Coroutines to implement simple and complex concurrent flows
-
Handle cancellations and errors inside Coroutines
-
Write unit tests for Coroutines-based code
-
Find out the most common Coroutines-related issues and pitfalls
-
Learn what Structured Concurrency is and how it helps you
0 Student
1 Course
0 review