Created
January 21, 2019 13:59
-
-
Save vvsevolodovich/5f8db36b10314853d84105f9274cbce4 to your computer and use it in GitHub Desktop.
Channels search
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
launch { | |
broadcast.consumeEach { | |
delay(300) | |
val foundRepositories = | |
apiClient.searchRepositories(it).await() | |
repos.adapter = ReposAdapter( | |
foundRepositories.map { it.full_name }, | |
this@RepositoriesActivity | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment