Talking Kotlin cover image

Kotlin and Android

Talking Kotlin

CHAPTER

Is There Support for Suspend Functions in Room?

In Room, we open the door to coroutines as well. For example, if you're doing a query and you want to run this inside a coroutine, now we just expose the queries as suspend functions. So it's all that easy in trial that you would also expect from these kind of APIs. In general, Room tries to ensure that you can do queries asynchronously and away from the main thread. There is some magic under the hood that also ensures that things are happening away from the from the main dispatcher.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner