Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Loader that uses ExecutorService and Threading Pools #90

Closed
kingargyle opened this Issue · 3 comments

2 participants

@kingargyle

It would be nice to be able to specify and submit the loaders onto an ExecutorService with thread pools. With AsyncTask going to sequential access (i.e. single threading) it can take a long time for lots of images to download or display.

With ExecutorService you can specify the max number of threads that can run parallel together. For layouts that have a number of images to fetch this could help reduce the amount of time required. I looked but didn't see an abstract class for the Loader implementation, but if I can get some hints I'm willing to write something and submit a pull request for this feature.

@ataulm
Collaborator

@kingargyle hi David. If this is still applicable for you, I'd appreciate if you could help me understand your request better. I'm afk at the moment but I don't recall seeing a Loader class in our codebase - are you referring to a specific object/interface?

@kingargyle

I've actually switched to using the Android-Universal-ImageLoader library which provides this functionality. I can specify how many background threads to use when downloading the images in the background. Basically that is what I was looking for.

@ataulm
Collaborator
@ataulm ataulm closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.