使用ThreadPoolExecutor时,我能否将AsyncTask用作我的队列中的Runnable?还是这样做会失去意义?
//A holder for various tasks
private final LinkedBlockingQueue<Runnable> queue = new LinkedBlockingQueue<Runnable>(5);
//Thread Pool Executor
private final ThreadPoolExecutor tpe = new ThreadPoolExecutor(3, 3, 10, TimeUnit.SECONDS, queue);