// FIX: Remove receiver & wrap with 'coroutineScope { ... }' | |
import kotlinx.coroutines.async | |
import kotlinx.coroutines.coroutineScope | |
fun calcSomething() {} | |
suspend fun foo() { | |
coroutineScope { | |
async { | |
calcSomething() | |
} | |
} | |
} | |
suspend fun test() { | |
foo() | |
} |