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

Alexander Maryanovsky

03/07/2023, 8:31 PM
Are composition side-effects guaranteed to never run concurrently with each other?
z

Zach Klippenstein (he/him) [MOD]

03/07/2023, 10:15 PM
Side effects are guaranteed to be ran on the main thread. I believe they also have strong ordering guarantees between both siblings and nested effects. So mostly yes to your question, but launched effects will be started separately but may of course run concurrently because coroutines.
a

Alexander Maryanovsky

03/08/2023, 6:39 AM
Understood, thanks
2 Views