Replies: 1 comment
-
Any reason why fetching images happens on the main thread or why is it hard coded? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
First, I like to start with a warm thank you for this wonderful library.
In the
RealImageLoader
class both functions -enqueue
andexecute
use/block the main thread for fetching images.while it's necessary to change the UI, sometimes, we need to prefetch the images even before the UI exists, for this, we use ImageLoader through the context, and then transfer the actual bitmap to the view when it's ready.
in these scenarios, we expect to use Dispatchers.IO all the way.
screenshot from RealImageLoader class -
Beta Was this translation helpful? Give feedback.
All reactions