Created
January 18, 2020 21:09
-
-
Save CostaFot/5d62d694841be1a843ff7e6ab82d37a4 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 RedditRepository(private val dispatcherProvider: DispatcherProvider) { | |
suspend fun getPost(): State.Post { | |
return withContext(dispatcherProvider.io) { | |
delay(5000) | |
State.Post("to be fair") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment