top of page

Andrea Della Porta
Mobile Technical Leader @ Cegeka
Born in Rome in 1994, passionate about mobile development since forever. Andrea has been a technology enthusiast for as long as he can remember. He started developing his first Java programs in his early high school years, but with the advent of smartphones, he quickly fell in love with the mobile world. His experience started in Switzerland for an Android project in the medical field and continued for large companies such as NTT Data and Deloitte, until he got to his current Cegeka. Over the years he has developed applications with large user bases for various industries, specializing in native Android development, Flutter and now Kotlin Multiplatform.
His life is not only programming, but also football and padel!
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