<Kotlin coroutine immediately give an exception if...
# stackoverflow
u
Kotlin coroutine immediately give an exception if last operation finished with exception When I was try to login on my service via retrofit. When my service is off, 10 seconds after clicking the button I got an SocketTimeoutException exception. So far everything is normal but again, I clicked the button again after the error gave the same error immediately. What's wrong? interface LoginService { @FormUrlEncoded @POST("/login") fun login(@Field("id") id: String, @Field("pw") pw: String): Deferred } class LoginViewModel : ViewModel() { private var job: Job =...