Sivan
02/28/2022, 1:59 PMerror: Not sure how to handle insert method's return type.
Kotlin version : 1.6.0
Room version : 2.4.2
Here is my DAO :
@Dao
interface UserDao {
.....
@Insert(onConflict = OnConflictStrategy.IGNORE)
fun loadUsers(userCacheEntities: List<UserCacheEntity>): Long
.....
}
tseisel
02/28/2022, 2:06 PMsuspend
, otherwise request would have blocked a threadSivan
02/28/2022, 2:13 PMAdrijan Rogan
02/28/2022, 2:24 PMUnit
or a list of longs or LongArray
instead, depending on your needsSivan
02/28/2022, 2:33 PM