Kotlin: Using Coroutines

More and more languages are providing support for asynchronous programming. This course will show you how to use the asynchronous programming features of Kotlin allowing you to create applications that are more responsive.
Course info
Level
Advanced
Updated
Aug 10, 2018
Duration
3h 50m
Table of contents
Introducing Kotlin Coroutines
Defining Functions and Running them with Coroutine Builders
Waiting on, Join-ing to, and Cancelling Coroutines
Understanding Coroutine Contexts
Composing Functions and Returning Data from Coroutines
Using Channels to Communicate Between Coroutines
Using Actors to Communicate Between Coroutines
Waiting on Multiple Coroutines Concurrently by Using Select
Using Coroutines in UI Applications
Course Overview
Description
Course info
Level
Advanced
Updated
Aug 10, 2018
Duration
3h 50m
Description

As a developer, you want to build fast-running applications without the overhead that threads can cause. In this course, Kotlin: Using Coroutines, you'll learn how coroutines provide a way to use ‘lightweight’ threads within a process that let us take advantage of multi-core processors without much of the overhead. First, you'll learn how to create coroutines. Next, you'll explore how to use them to return data. Finally, you'll discover how to use coroutines in environments such as JavaFX and Android, where thread affinity is really an issue. By the end of this course, you'll have a thorough knowledge of how to use coroutines in Kotlin to create fast and efficient 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
Java Web Fundamentals
Intermediate
3h 22m
Jun 5, 2019
Building Web Applications in Kotlin Using Ktor
Intermediate
2h 13m
May 31, 2019
More courses by Kevin Jones
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
(Music playing) Hi everyone, my name is Kevin Jones, and welcome to my course on Using Coroutines in Kotlin. I'm a founder and developer at Rock Solid Knowledge, a software development company based in the United Kingdom. Asynchronous programming is a technique that lets you scale applications without overloading the operating system by creating too many threads. Kotlin provides excellent support for asynchronous programming through its use of coroutines. Some of the major topics that we will cover include understanding how to create coroutines with various builders, such as launch and runBlocking, using async and await to return data from coroutines, creating channels to allow coroutines to communicate easily, and using actors to manage state in an asynchronous environment. By the end of this course, you'll have an in-depth understanding of how to do asynchronous programming in Kotlin using coroutines. Before beginning the course, you should be familiar with programming Kotlin. I hope you'll join me on this journey to learn coroutines with Kotlin: Using Coroutines course at Pluralsight.