What is the best way to write the below code? ```v...
# codereview
k
What is the best way to write the below code?
Copy code
viewLifecycleOwner.lifecycleScope.launch {
            viewLifecycleOwner.lifecycle.repeatOnLifecycle(Lifecycle.State.STARTED) {
                launch {
                    collectABCState()
                }

                launch {
                    collectABCInfo()
                }

                launch {
                    collectXYZFailedEvents()
                }

                launch {
                    collectABCTime()
                }

                launch {
                    collectABCSummary()
                }
            }
e
stateFlow.onEach(::consumeState).launchIn(scope)
infoFlow.onEach(::consumeInfo).launchIn(scope)
...
🤔