top of page
Ioannis Anifantakis

Ioannis Anifantakis

Senior Engineer @ Deloitte Digital

Hi, I am Ioannis, a Software Engineer whose 23-year industry career journey began in Windows Desktop Development and Database Design, evolving into Android Development driven by my passion for mobile technology. As a dedicated Computer Science educator, content creator, and fervent advocate for lifelong learning and knowledge sharing, I have been speaking at various technology events since 2016, maintaining an active YouTube channel, and publishing articles on Medium to demystify Android, Machine Learning, and programming concepts for fellow developers.

Coroutine Suspension Mechanics: The State Machine within

Let's gaze inside a Kotlin Coroutine structure and see the Finite State Machine (FSM) inside it. Suspension mechanics revealed. Beneath the elegant syntax, suspending functions hide a powerful state machine transformation that the Kotlin compiler generates. This transformation can feel magical, so our goal here is to demystify how Coroutine suspension works and reveal the mechanics behind it. We'll explore how the compiler transforms suspending functions into state machines, how local variables persist across suspensions, and how cancellation and exception handling integrate with this system. By the end of this talk, attendees will understand the internal mechanics of coroutine suspension, enabling them to write more efficient asynchronous code, debug coroutine issues more effectively, and make better decisions about suspension points in their applications.
bottom of page