Open ouiminga opened 10 months ago
URL of codelab: https://developer.android.com/codelabs/basic-android-kotlin-compose-add-repository?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-5-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-add-repository#8
Describe the problem
runTest() function doesn't resolve the problem of the getMarsPhotos() method call underlined in red.
Improvment : Use runBlocking() from kotlinx.coroutines.runBlocking
URL of codelab: https://developer.android.com/codelabs/basic-android-kotlin-compose-add-repository?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-5-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-add-repository#8
Describe the problem
runTest() function doesn't resolve the problem of the getMarsPhotos() method call underlined in red.
Improvment : Use runBlocking() from kotlinx.coroutines.runBlocking