Last active
December 18, 2018 14:07
-
-
Save leandroBorgesFerreira/37a8cfc289b96ba414857f36c1393492 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
| class RepositoryUseCase<F>( | |
| private val dataSource: RepositoryDataSource<F> | |
| ) : Kind<F, List<Repository>>, Async<F> by dataSource{ | |
| fun getRepositories() : Kind<F, List<Repository>> = | |
| dataSource.fetchAllRepositories().continueOn(Dispatchers.Main) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment