Lifecycles, Coroutines and Scopes | Alejandro Serrano Mena

preview_player
Показать описание


Structured concurrency is one of the key ideas in the Kotlin language, ensuring correct and intuitive cancellation and supervision of jobs. In this talk we look at how these ideas translate when coroutines are introduced in other frameworks with their own lifecycles, like Spring services or Android applications.

Another way to think about this talk is a search for every usage of CoroutineScope in Kotlin libraries, and understand how that bridges the world of coroutines.

Jobs are not the only lifecycle-aware pattern in Kotlin. The Arrow library provides other two examples: resource management, and distributed transactions. By the end of the talk, you'll be able to see the commonalities, and have a better understanding of all those interfaces ending in Scope.

Due to technical difficulties, this talk was not properly recorded during the conference. Alejandro kindly agreed to re-record it at the JetBrains office.
Рекомендации по теме
Комментарии
Автор

Very clear, it really helped me better understand the power of coroutine scopes 👍

alexismanin
Автор

Nice talk! It was interesting to learn about Arrow's Saga, it could prove very useful in certain cases.

gekylafas
Автор

Guys someone help me please, i'am doing very fast update to the local database (room) the problem is sometimes the database is not updating, i tried viewModelLunch scope and dispatcher IO, any one can help or have idea please and thank you ..

azzdine
Автор

Is it mean that Activity initiate a Thread and exist until the Activity destroyed then other components could use that Thread to do asynchronous job?

Heksapoda