<https://kotlinlang.slack.com/archives/C0922A726/p...
# coroutines
g
doing some testing, that code works as written, the
this: CoroutineScope
provided by
runblocking
is captured by the closure in
someOtherMethod
, so that code, as you've written it, compiles just fine for me.
you might also try labelling it: at the very least you can use a
this@runBlocking
, or alternativel you can name it with a label
Copy code
fun foo() = runBlocking myScope@ {
  someOtherMethod {
    this@myScope.async { //...|
    }
  }
}
i
Maybe I was doing something weird, was using the experimental coroutines package