Android Studio – How I can wait until the value get updated then I use it
Entity class @Entity(tableName = "user_table") data class User( @PrimaryKey(autoGenerate = true) //.... ) { constructor( userID: Int ) : this( userID, //... ) } Dao class @Dao interface UserDao { @Insert(onConflict = IGNORE) fun addUser(user: User): Long //....... } Repository…