Outer Method Execute Before Override Inside Method In Java
Currently trying to set User u object by using JSON data from response.body() (retrofit). However, I am not able to do that. loginOperation(email,psswd) returns a boolean value whi
Solution 1:
call.enqueue is an asynchronous operation, so rest of the code in loginOperation() after this call will continue to execute. If you want to block till response is received you need use synchronous call.execute
Solution 2:
Use Rest Template instead of your call, it will be a blocked http call, see examples here
Post a Comment for "Outer Method Execute Before Override Inside Method In Java"