Written form: https://blog.rockthejvm.com/kotlin-co...
Complete Kotlin course: https://rockthejvm.com/p/kotlin-essen...
In this video, we explore coroutines and structured concurrency in Kotlin. We talk about what Kotlin coroutines are, how they work, how they are different from regular threads, blocking computations, and how we can run suspend functions. We also discuss coroutine scopes and controlling the sequence and structure of parallel/concurrent computations with coroutines (structured concurrency).
Contents:
0:00 Intro, threads vs coroutines
4:12 running coroutines
9:02 coroutine scopes
14:45 structured concurrency
20:19 returning values from coroutines
Follow Rock the JVM on:
LinkedIn: / rockthejvm
Twitter: / rockthejvm
Blog: https://blog.rockthejvm.com
Website: https://rockthejvm.com