Expanded

Kotlin Coroutines: Getting Started

Coroutines have become a core skill that is needed when building applications with Kotlin. This course will teach you the basics of coroutines, suspending functions and how to use them.
Course info
Level
Intermediate
Updated
Aug 27, 2021
Duration
4h 16m
Table of contents
Course Overview
Introducing Coroutines
Defining Suspend Functions and Running Them with Coroutine Builders
Jobs, Contexts, Scopes and Structured Concurrency
Using Async/Await
Cancellation and Exceptions
Using Coroutines in UI Applications
Coroutine Internals
Description
Course info
Level
Intermediate
Updated
Aug 27, 2021
Duration
4h 16m
Your 10-day individual free trial includes:

Expanded library

This course and over 7,000+ additional courses from our full course library.

Hands-on library

Practice and apply knowledge faster in real-world scenarios with projects and interactive courses.
*Available on Premium only
Description

Coroutines are a way of writing non-blocking asynchronous code in Kotlin. In this course, Kotlin Coroutines: Getting Started, you’ll learn to use coroutines effectively in your applications. First, you’ll explore coroutine builders and suspending functions Next, you’ll discover structured concurrency. Finally, you’ll learn how exceptions and cancellation work with coroutines . When you’re finished with this course, you’ll have the skills and knowledge of coroutines needed to build scalable, asynchronous applications.

About the author
About the author

Kevin has spent way too many years in the software industry. Starting on PL/1 on IBM mainframes then graduating through dBase IV to Windows and eventually onto Java, .Net and now JavaScript where he finally thinks he has found a home until the next new shiny comes along.

More from the author
Kotlin Fundamentals
Beginner
4h 47m
Apr 27, 2021
Getting Started with Kotlin
Intermediate
2h 9m
Apr 20, 2021
More courses by Kevin Jones
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone, my name is Kevin Jones, and welcome to my course, Kotlin Coroutines: Getting Started. I am a developer and owner at Rock Solid Knowledge, a software development company based in the United Kingdom. Coroutines allow us to write asynchronous non‑blocking code in Kotlin, and they have become a key part of Kotlin development. They're now a standard part of Kotlin and are fast replacing JavaFX as the way to write asynchronous code on Android. In this course, some of the major topics that we'll cover include creating coroutines using coroutine builders, using the launch and async coroutine builders to create coroutines, understanding how to use suspending functions in your code, to see what structure concurrency is and how to use it effectively, we'll go in depth on coroutine cancellation and exceptions, and we'll also look to understand the details of how coroutines work. By the end of this course, you'll know how to use coroutines effectively in your Kotlin code to write highly scalable applications. You'll see examples using UI frameworks such as Jetpack Compose, and you'll be confident on how to use dispatches and how to manage exceptions. Before beginning the course, you should be familiar with Kotlin, and from here you should feel comfortable diving further into coroutines with a course on Kotlin Coroutines Channels and Flows. I hope you'll join me on this journey to learn coroutines with the Kotlin Coroutines: Getting Started course, from Pluralsight.