YoVDO

Kotlin Coroutines - From Fundamentals to Advanced Concepts

Offered By: Smartherd via YouTube

Tags

Kotlin Courses Concurrency Courses Asynchronous Programming Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Dive into a comprehensive 2-hour tutorial on Kotlin Coroutines, covering everything from fundamentals to advanced concepts. Learn about coroutine basics, builders, cancellation, exception handling, and composition of suspending functions. Explore the differences between threads and coroutines, implement various coroutine builders, and understand cooperative cancellation. Discover how to handle exceptions, use timeouts, and compose suspending functions sequentially and concurrently. Delve into advanced topics like CoroutineScope, CoroutineContext, and Dispatchers. Gain practical knowledge through demos in IntelliJ IDEA and clear presentations, making you proficient in using coroutines for efficient asynchronous programming in Kotlin.

Syllabus

Course Overview
Chapter 1: Coroutine Fundamentals
Threads vs. Coroutines
What are Coroutines?
Coroutines Properties
Implement Coroutines
delay function
suspend function
runBlocking lambda
Custom suspending function
Chapter 1: Summary
Chapter 2: Coroutine Builders
Coroutine Builders
Purpose of GlobalScope
launch coroutine builder
async coroutine builder
runBlocking coroutine builder
Chapter 2: Summary
Chapter 3: Coroutine Cancellation and Exception Handling
What is Cooperative Cancellation?
yield function
isActive flag
Handling CancellationException
withContext Coroutine Builder
Throw Exception with message
Timeouts: withTimeout & withTimeoutOrNull
Chapter 3: Summary
Chapter 4: Composing Suspending Functions
Sequential Execution
Concurrent Execution
Lazy Async Execution
Chapter 4: Summary
Chapter 5: CoroutineScope, CoroutineContext, and Dispatchers
CoroutineScope
CoroutineContext Dispatchers
Thank You!


Taught by

Smartherd

Related Courses

JavaScript Promises
Google via Udacity
Grand Central Dispatch (GCD)
Udacity
Asynchronous Programming in C# and .NET Core
Microsoft via edX
JavaScript, часть 2: прототипы и асинхронность
Moscow Institute of Physics and Technology via Coursera
Разработка веб-сервисов на Go - основы языка
Moscow Institute of Physics and Technology via Coursera