Skip to content

Kotlin Coroutines: Expert Usage

Training certified by

  • Kotlin
  • Expert
  • 2d

Go beyond everyday coroutine usage: understand their inner mechanisms, from language primitives to flows, to write reliable, performant, and testable asynchronous code, and choose the right tool for each problem.

Course
Overview

Program
Objectives

  1. Understand the inner workings of coroutines and leverage their low-level primitives.


  2. Master structured concurrency, scopes, and cancellation handling.


  3. Port synchronous or thread-based APIs to coroutines.


  4. Communicate between coroutines with channels and the actor model.


  5. Use hot and cold flows, their operators, and how to share them.


  6. Effectively test coroutine-based code.


Prerequisites

Program

D1

From primitives to structured concurrency

Morning

Synchronous coroutines

sequences and generators, without concurrency

Low-level primitives

Continuation, suspendCoroutine, createCoroutine

Coroutine contexts

customize coroutine behavior

The thread-hopping problem

understand it and fix it manually

Afternoon

Concurrency & parallelism

execution models and event loops

Cancellation

cleanly interrupt ongoing work

API porting

adapt synchronous and thread-based APIs

Scopes

structure and compose concurrency

D2

Channels, flows & tests

Morning

Dispatchers

distribute work across domains

Channels

communicate between coroutines

Actor programming

principles and implementation

Hot & cold flows

understand their differences

Afternoon

Flow sharing

share and broadcast a flow

Operators

transform, combine, and filter flows

Flow dispatching

control the execution context

Tests

test coroutine-based code

Details

  • Format

    In-company

  • Duration

    2 days (14 hrs)

  • Level

    Expert

Contact

Organize this course for your team

Interested in this program? Tell us about your context, and we'll get back to you to build the right workshop for your team, together.

    You are



    Additional information

    These trainings might interest you

    Our workshops are designed for professionals. Each program is tailored to your team's level and context, whether in-house or as an open session.

    Kotlin Multiplatform: Mobile

    Kotlin Intermediate
    3j

    Share your business logic between Android and iOS without sacrificing the native experience: master the Kotlin Multiplatform toolchain and Swift interoperability to design, distribute, and integrate a robust shared SDK that accelerates your teams.

    Read

    The Kotlin Language: Concepts & Tools

    Kotlin Beginner
    3j

    Discover how Kotlin lets you write less code with fewer errors: its key concepts and tools will quickly make you productive at building safe, readable, and maintainable applications.

    Read

    Compose: Interfaces in All Their Forms

    Kotlin Intermediate
    2j

    Embrace declarative thinking to build reactive, maintainable, and performant interfaces. Master state and data flow to share a single UI codebase across Android, iOS, Desktop, and Web.

    Read

    The Kotlin Language: Expertise for Deploying APIs

    Kotlin Expert
    3j

    Go beyond everyday Kotlin: understand the deep mechanisms of the language and compiler to write idiomatic, safe code, design durable public APIs, and automate code generation.

    Read

    Koog: Integrating AI into Your Multiplatform Apps

    IA Intermediate
    2j

    Go beyond the simple LLM call: use Koog to design AI agents integrated into your Kotlin applications, capable of acting and orchestrating themselves, reliable, cost-efficient, and observable in production.

    Read

    Gradle: Master & Optimize Your Builds

    Gradle Intermediate
    1j

    Finally understand what happens in your Gradle builds to make them reliable, fast, and maintainable: factor out your configuration, automate your specific needs, and save precious time on every build.

    Read