Hi! Why is something like this not possible? ``` ...
# coroutines
r
Hi! Why is something like this not possible?
Copy code
class F {
    suspend fun CoroutineScope.process() {

    }
}

fun main(args: Array<String>) {
    launch {
        val f = F()
        // unresolved reference
        f.process()
    }
}
m
You need to call the function on a
CoroutineScope
.
Use this syntax:
Copy code
with(f) {
  myCoroutineScope.process()
}
r
ahh, shit yes. :))
thank you @marstran
m
No problem
r
What a dumb mistake 🙂