Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is downloadOnly synchronous or asynchronous?

Consider the following line of code Glide.with(getContext()).downloadOnly().load(some_uri).submit();

Question 1) Is it synchronous or asynchronous?

Question 2) If it is synchronous, then how do I make it asynchronous? If it is asynchronous, then how do I make it synchronous?

The question refers to Glide v4

like image 395
AlanSTACK Avatar asked Dec 06 '22 12:12

AlanSTACK


1 Answers

Answering my own question.

Glide.with(getContext()).downloadOnly().load(some_uri).submit();

is async.

Glide.with(getContext()).downloadOnly().load(some_uri).submit().get();

is sync

like image 187
AlanSTACK Avatar answered Dec 30 '22 18:12

AlanSTACK