Skip to content

how it works viewmodel{observe,failure} #92

Open
@aaghan

Description

@aaghan

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      how it works viewmodel{observe,failure} · Issue #92 · android10/Android-CleanArchitecture-Kotlin