Execution of Sequence a chain of async web requests with Retrofit and LiveData in android -




so have 3 retrofit web requests call mainactivity , each call won't depend on each other.

so let's first 1 getimages() , second getcountry(), , final 1 getuser()

but have condition next activity shouldn't load until these request executed successfully.

so have 2 options here

1) create nested request , execute each request onsuccess on each response . seems reliable hence these async call need optimize time.
2) create variable , increment on each success call , approach seems time saving i'm not sure practice.

so there way can done . .and i'm not using rxandroid





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -