Compounding Louis’ amazing replies, if you are really looking for an introduction to coroutines, this talk (
https://www.youtube.com/watch?v=_hfBv0a09Jc▾
) by Roman Elizarov is really good as well. His subsequent talks, such as the one about flow somewhat build up from the context of this one I think