To suspend in Kotlin Coroutines, you’d simply add the suspend modifier to your function. Just what exactly does adding this suspend modifier do? How does it work behind the scenes? That’s what we’ll be exploring in this blog.
Confused about generic subtyping? With just a few simple, foundational concepts, almost everything about variance becomes clear. If you’re confused about how subtyping works with generics in Kotlin, start here.