coroutineScope { // Now you are in scope }
# announcements
m
coroutineScope { // Now you are in scope }
i
Does that actually work? Wouldn’t
coroutineScope
be on the global?
m
This would be the scope of runBlocking's !
i
So to be clear, it would look like:
Copy code
fun foo() = runBlocking {
  // some method that takes a block
  someOtherMethod {
    // want to access surrounding scope here
    coroutineScope { async { ... } }
  }
}
? I was poking this a couple days ago. Don’t have that code in front of me at the moment but will give that a shot.
m
Yes!!
🙌 1