
Instead of using an Executor to run DownloadTasks creates and manages threads internally. Also added DownloadThread internal class to better separate the code that doesn't run on the main thread. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=174036872