Kotlin coroutine is transformed to Java continuation class.
Here you can see how suspend function uses continuation to suspend the code running without code blocking.
This is one of the easiest ways to do it, although I do not recommend it too much for building complex apps, because it just becomes another line of code that you have to continuously go back and maintain.
In this video, string template, if-else expression and when expression are explained in Kotlin with live coding. I have also made a GitHub repo and article which you can check below: Article: GitHub: Watch full playlist here: Feedback below 🙂