Workshop 7
Startseite » Workshops » Workshop 7: Coroutines
Kotlin Coroutines in Practice (Englisch)
- 17. Oktober 2023
- 9:30–17:00 Uhr
Detailed description of this workshop
Kotlin Coroutines library is designed to suit common use cases well and has powerful support for testing. This presentation will present typical usages of Kotlin Coroutines in real-life Android and backend projects, as well as it will analyze how those use cases can be properly tested. You will learn what a coroutine is and then explore the most important use cases for using and testing coroutines in real-life projects. The workshop is concentrated on equipping attendees with the essential knowledge to use Kotlin Coroutines in accordance with the best practices.
Key takeaways
- What is a coroutine
- Working with dispatchers
- Turning callback functions/blocking functions into suspend functions
- Turning observers/watchers/listeners into flow
- Starting async process and a list of async processes
- Starting concurrent processes and managing their cancellation
- Essentials of the flow processing
- Optimizing flows by reusing the same source (using SharedFlow)
- Creating coroutine scope
- Starting coroutines
- Testing coroutines and using virtual time for better testing
How to get the most out of this workshop
This workshop assumes that attendees are Kotlin developers or at least use Kotlin fluently. In order to progress smoothly during the workshop, there are a few things we ask you to do in advance:
- Make sure you have Idea IntelliJ installed (The Community Edition is fine.)
- Open this Clone-Project in IDEA IntelliJ as a Gradle project and import using Gradle. Check if it runs fine using the green Play button on Main.kt, but do not solve any tasks for now.
- Extra: Watch the lecture about Kotlin DSL
Your workshop with the Kotlin pro
Marcin Moskała is an experienced Android developer, teacher, and an official Jetbrains‘ Kotlin training partner. He is the founder of Kt. Academy, author of the books »Android Development with Kotlin«, »Effective Kotlin« and »Kotlin Coroutines: Deep Dive«. He is also an active programming community member, the main author of the biggest medium publication about Kotlin, and a speaker invited to many programming conferences.
6 Gründe, dabei zu sein
Wissen für den sofortigen Einsatz
15 Vorträge zu allen wichtigen Kotlin-Themen
Workshops für Deine Weiterbildung
Intensivseminare für Softwareentwickler
Von führenden Experten lernen
Austausch mit den Besten der Branche
Konferenzerlebnis für zu Hause
Aufzeichnung des gesamten Events
100 Prozent Rheinwerk
Umfassendes Wissen in geprüfter Qualität
Und der Rest: Perfekt!
Moderiertes Live-Event mit Q&A-Sessions