Hey. In dev17 CoroutineContextAmbient has gone. Wh...
# compose
p
Hey. In dev17 CoroutineContextAmbient has gone. What is the replacement?
a
rememberCoroutineScope()
and
launchInComposition {}
, which one depends on the use case. The former gives you a scope that will be cleaned up that you can use to launch from other events, the latter is useful for more actor-like things
👍 1
z
Just a heads up,
rememberCoroutineScope
won’t compile if you pass a lambda. https://kotlinlang.slack.com/archives/CJLTWPH7S/p1597350451097100