Skip to content

Experiments and demonstrations to help with the understanding of how Kotlin coroutines are implemented, based on the official Kotlin Coroutines Design KEEP document.

Notifications You must be signed in to change notification settings

pvillela/understanding-coroutines-impl

Repository files navigation

Understanding Coroutines Implementation

Experiments and demonstrations to help with the understanding of how Kotlin coroutines are implemented, based on the official Kotlin Coroutines Design KEEP document.

Includes detailed examples of:

  • The process used by the Kotlin compiler to transform suspend functions with continuation passing style and state machines.
  • Continuations implemented with nested closures as well as continuations implemented with state machines.
  • Trampolining for stack safety.
  • Execution logs comparing the performance of different implementation approaches.

About

Experiments and demonstrations to help with the understanding of how Kotlin coroutines are implemented, based on the official Kotlin Coroutines Design KEEP document.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages