Created
May 31, 2016 20:31
-
-
Save dangthaison91/6bb43b7248a768fedc284488bc192859 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Fire API request then bindTo Tableview | |
searchBar | |
.rx_text | |
.throttle(0.5, scheduler: MainScheduler.instance) | |
.distinctUntilChanged() | |
.filter { $0.characters.count > 0 } | |
.flatMapLatest { findRepository($0) } | |
.flatMapLatest { repository -> [Issue] in | |
return findIssues(repository) | |
} | |
.filterNull() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment