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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With