Kotlin Coroutines for Android Masterclass

Master Kotlin Coroutines in Android and gain hands-on experience with Coroutines by solving advanced exercises

  • 0.0 (0 Reviews)
  • 0 Students
  • 84 Lessons
  • Vasiliy Zukanov

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!

See more

FAQ

FAQ area empty

Course curriculum

11 chương 84 bài học 12 giờ 5 phút 7 bài học thử miễn phí
Chương 1 Introduction
Chương 2 Coroutines Intuition
Chương 3 Coroutine Scope Cancellation
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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

Instructor

...
Vasiliy Zukanov

0.0

  • ... 0 Student
  • ... 1 Course
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all