liminal
12/31/2019, 3:06 PMlookupImagesWithAsync()
should be faster since two images are downloaded in parallel, correct? imageRepository.downloadImage(imagePath)
is a suspend
function that does its work in withContext(<http://Dispatchers.IO|Dispatchers.IO>)
Dominaezzz
12/31/2019, 3:12 PMliminal
12/31/2019, 3:15 PMlookupImages()
imageRepository.downloadImage("img-url-2")
does not start the download process until imageRepository.downloadImage("img-url-1")
returns image1
?Dominaezzz
12/31/2019, 3:16 PMliminal
12/31/2019, 3:17 PMDominaezzz
12/31/2019, 3:20 PMliminal
12/31/2019, 3:20 PM