Android-CleanArchitecture-Kotlin
Android-CleanArchitecture-Kotlin copied to clipboard
how it works viewmodel{observe,failure}
moviesViewModel = viewModel(viewModelFactory) { observe(movies, ::renderMoviesList) failure(failure, ::handleFailure) }
Taking this example, this viewmodel moves to the method renderMoviesList on success and handleFailure on failure.
But how is this defined in generic type, about the method and params it shall be moving towards?