Главная
Study mode:
on
1
Intro
2
async and await are functions defined in the standard library
3
Example: simple consecutive logic
4
Rewrite with suspend functions
5
Coroutine builders
6
Simple "load image" example
7
async creates a new coroutine: starts a new asynchronous computation
8
Call stack of a coroutine
9
Specify the context
10
Structural concurrency
11
Two asynchronous coroutines
12
Problem: leaking coroutine
13
Enforcing structure
14
Types of Channels
15
"Rendezvous" channel semantics
16
Suspended coroutine
Description:
Explore the world of asynchronous programming with Kotlin coroutines in this 59-minute conference talk by Svetlana Isakova at NDC Conferences. Dive into the concept of coroutines, lightweight threads that can be suspended and resumed, and discover how they simplify asynchronous code. Learn about the power of async/await functions and their implementation using coroutines in Kotlin. Understand the benefits of defining asynchronous computations with suspend functions, and explore practical examples such as loading images. Delve into coroutine builders, call stacks, and context specification. Address common issues like leaking coroutines and discover solutions through structural concurrency. Examine different types of channels, including "Rendezvous" channel semantics, and gain insights into suspended coroutines. By the end of this talk, acquire new ways to write clear, efficient asynchronous code using Kotlin coroutines.

Kotlin Coroutines - New Ways to Do Asynchronous Programming

NDC Conferences
Add to list
0:00 / 0:00