blob: 8d7fa39e8d97861e36a04479565e171b5e032392 [file] [log] [blame]
// FIX: Remove receiver & wrap with 'coroutineScope { ... }'
import kotlinx.coroutines.async
import kotlinx.coroutines.coroutineScope
fun calcSomething() {}
suspend fun foo() {
coroutineScope {
async {
calcSomething()
calcSomething() // ...
/* ... */
calcSomething() /* ... */
calcSomething()
if (true) // ...
calcSomething()
}
}
}