Coroutines: Tính đồng thời trong Kotlin

Tác giả: Dave Leeds
Ngày xuất bản: 2024-07-31T00:00:00
Length: 30:22

Tóm tắt nội dung

Mô tả

In this presentation, I give an overview of coroutines in Kotlin, including the basics of coroutines, how they can be used for concurrency and parallelism, and how structured concurrency helps ensure coroutines are cleaned up in response to cancellations and exceptions.

The content for this presentation is largely based on chapter 20 of Kotlin: An Illustrated Guide, which you can read online here: https://typealias.com/start/kotlin-coroutines/. You can also purchase the Leanpub edition here: https://book.typealias.com.

✨ New to Kotlin? Start your journey here: https://typealias.com/start/

🚀 Get the inside scoop on everything I'm working on - join my new email newsletter!

Sign up here: https://newsletter.typealias.com/

🎞️ Chapters in this video

00:00 - Coroutine Basics

12:25 - Sequential Code

15:04 - Concurrency

18:06 - Parallelism

22:57 - Cancellation

25:53 - Partial Cancellation

27:41 - Exceptions

29:39 - The End

Dịch Vào Lúc: 2025-03-04T05:52:42Z

Yêu cầu dịch (Một bản dịch khoảng 5 phút)

Phiên bản 3 (ổn định)

Tối ưu hóa cho một người nói. Phù hợp cho video chia sẻ kiến thức hoặc giảng dạy.

Video Đề Xuất