Apply suggestions from code review
Co-authored-by: Koitharu <nvasya95@gmail.com>
This commit is contained in:
@@ -30,7 +30,7 @@ class PagesCache @Inject constructor(@ApplicationContext context: Context) {
|
||||
size = FileSize.MEGABYTES.convert(200, FileSize.BYTES),
|
||||
)
|
||||
|
||||
suspend fun get(url: String): File? = withContext(Dispatchers.IO) {
|
||||
suspend fun get(url: String): File? = runInterruptible(Dispatchers.IO) {
|
||||
lruCache.get(url)?.takeIfReadable()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user