Slide 120
Slide 120 text
1. Idling Resources
2. Waiting for things
3. Replace components
1. Idling Resources
class AuthRepository(val authService: AuthService) {
private val idlingResource = SimpleIdlingResource()
suspend fun login(email: String, password: String) {
idlingResource.setIdleState(false)
authService.login(email, password)
idlingResource.setIdleState(true)
}
}