package com.github.to2mbn.jmccc.mcdownloader.download.group;

import java.util.concurrent.Callable;
import java.util.concurrent.Future;
import com.github.to2mbn.jmccc.mcdownloader.download.DownloadTask;
import com.github.to2mbn.jmccc.mcdownloader.download.concurrent.AsyncCallback;

public interface MultipleDownloadContext<T> extends AsyncCallback<T> {

	Future<?> submit(Runnable task, AsyncCallback<?> callback, boolean fatal) throws InterruptedException;

	<R> Future<R> submit(Callable<R> task, AsyncCallback<R> callback, boolean fatal) throws InterruptedException;

	<R> Future<R> submit(DownloadTask<R> task, AsyncCallback<?> callback, boolean fatal) throws InterruptedException;

}

@@ -129,16 +129,87 @@
 Future;%0A
+import com.github.to2mbn.jmccc.mcdownloader.download.DownloadCallback;%0A
 import c
@@ -672,37 +672,40 @@
 adTask%3CR%3E task, 
-Async
+Download
 Callback%3C?%3E call
@@ -689,33 +689,33 @@
 ownloadCallback%3C
-?
+R
 %3E callback, bool

update MultipleDownloadContext