Created
April 12, 2022 09:28
-
-
Save JoseAlcerreca/ea41fd7d0c593493ebee375506b00244 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
class MyRepo(dataSource: MyDataSource) { | |
suspend fun getItems() { | |
idlingResource.setBusy() // App is busy… test must wait. | |
val result = dataSource.getTasks() | |
idlingResource.setIdle() // App is idle, ready for next operation. | |
return result | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment