Handling Multiple File Downloads Appcelerator Titanium & Async.js
Was looking for solution to download multiple assets in a nice neat looping manner and did not knew there were alternatives out there. In my search I found this gist from Dan Tamas
It works but I knew that there must be a more elegant approach to the problem. We have started to to utilize the async.js library in multiple projects here at Clearly Innovative and I remembered that there was a queue function available.
After some playing around with it, I have come up with the following base solution to solve the problem. The code below works and could be further refactored into a commonjs library but what is below should get you started on your way.