Fix the coroutine call

Report a typo

Fix the following code to make it compile.

Tip: Not every function can call suspendable functions.

Write a program in Kotlin
suspend fun sendData() {
delay(1)
println("Success!")
}

// fix me, I want to call suspending function
fun main() {
// Call suspending function from the article with following signature:
// suspend fun sendData()
sendData()
}
___

Create a free account to access the full topic