'Inappropriate blocking method call' - How to handle this warning on Android Studio
问题 I have written this code snippet to download image files from firebase storage to local storage. contentResolver.openOutputStream(uri)?.use { ops -> // * Firebase.storage.getReferenceFromUrl(model.mediaUrl).stream.await().stream.use { ips -> val buffer = ByteArray(1024) while (true) { val bytes = ips.read(buffer) // * if (bytes == -1) break ops.write(buffer, 0, bytes) // * } } } In the marked lines, android studio is giving me Inappropriate blocking method call warning, highlighting