I started learning Jetpack Compose recently so I keep comparing it with the the traditional UI development(xml). What I noticed in the article here,
Composable functions can run in parallel
Compose can optimize recomposition by running composable functions in parallel. This lets Compose take advantage of multiple cores, and run composable functions not on the screen at a lower priority.
This optimization means a composable function might execute within a pool of background threads. If a composable function calls a function on a ViewModel, Compose might call that function from several threads at the same time.
Does that mean Compose compiler can use a background thread to compose/recompose unlike previously where only the main thread was allowed to update the UI?
Or am I wrong here to compare a declarative style of UI development with the traditional style and I should keep previous things aside?