Created
June 26, 2019 19:17
-
-
Save mecid/c31dd4959cf34d71036edfe16f8b62ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private func fetchRepos(matching query: String) { | |
githubService | |
.search(matching: query) | |
.replaceError(with: []) | |
.subscribe(on: DispatchQueue.global()) | |
.receive(on: OperationQueue.main) | |
.assign(to: \.repos, on: self) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment