All posts by
Tomasz Szewczyk

Jan 24 2022

How do coroutines work internally in Python?

Most of applications we create are basically loops. An average program waits for an event, then processes it following some business logic. Afterwards it begins waiting for another event to arrive. Java Servlets work this way too. Popular frameworks such as Spring allow us to only care about the business logic, while the framework takes care of the application main loop.


Tomasz Szewczyk

JVM software developer with interest in all kind of programming languages. Experienced in electronics, embedded C, Python, Java, Kotlin and JavaScript.