Talking Kotlin cover image

Kotlin and Android

Talking Kotlin

00:00

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.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app