Skip to content

Commit

Permalink
feat: Use the suspend keyword with the insertAll function in Asteroid…
Browse files Browse the repository at this point in the history
…Dao to ensure that it will always called in Background threads
  • Loading branch information
AliElDerawi committed Jan 6, 2025
1 parent 6a391f6 commit e0caa3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ interface AsteroidDao {
): Flow<List<AsteroidModel>>

@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insertAll(vararg asteroidList: AsteroidModel)
suspend fun insertAll(vararg asteroidList: AsteroidModel)

}

Expand Down

0 comments on commit e0caa3f

Please sign in to comment.