Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
protocol MovieManaging {
/// Fetches popular movies from the server, then stores them.
func getPopularMovies(_ completion: @escaping (Result<[Movie], MovieManagerError>) -> Void)
/// Fetches a movie from the store if it exists, from the server otherwise.
func getMovie(id movieID: String, completion: @escaping (Result<Movie, MovieManagerError>) -> Void)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment