jean
lifecycleScope.launch { viewModel.state.collect { updateState(it, binding) } } lifecycleScope.launch { viewModel.load() }
viewModel.load()
collect
Giorgos Neokleous
launchIn
lifecycleScope.launch { viewModel.state.onEach { updateState(it, binding) }.launchIn(lifecycleScope) viewModel.load() }
A modern programming language that makes developers happier.