https://kotlinlang.org logo
#compose
Title
# compose
r

romainguy

07/29/2020, 8:00 PM
launchInComposition()
6
g

galex

07/29/2020, 8:05 PM
Thank you Romain !
1
l

Leland Richardson [G]

07/29/2020, 8:58 PM
for some other use cases,
rememberCoroutineScope
is what you want
☝️ 1
a

Adam Powell

07/29/2020, 9:25 PM
yes, the above. If you have something roughly actor-like that you want to run, use
launchInComposition
. If you want to be able to launch jobs as a result of other events and have that scope managed/cleaned up for you, use
rememberCoroutineScope
.
2 Views