Closed jpduran closed 2 years ago
In Commit 10723fd, room-ktx
was added in app/build.gradle and suspend
was added in SleepDatabaseDao.kt. The solution using withContext
was before the following change in Version 2.1.0
Couroutines: DAO methods can now be suspend functions. Include room-ktx in your dependencies to take advantage of this functionality
Commit 75ef93