Please don't stop the music

Report a typo

Take a look at the following snippet:

fun requestSongs() {
    println("Wait a minute! We are looking for songs...")
}

suspend fun downloadMusic() {
    println("Downloading..")
    requestSongs()
}

fun main() {
    downloadMusic()
    // ...
    println("Yay, new music")
}

It should download music and wait for some external resource, but the code doesn't work properly. Choose all possible ways how we can improve it.

Select one or more options from the list
___

Create a free account to access the full topic