提交 c1b0c0f4 编写于 作者: K kohsuke

fixed parameterization

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17116 71c3de6d-444a-0410-be80-ed276b4c234a
上级 02d06c1f
......@@ -76,9 +76,12 @@ public abstract class SU {
});
}
public static <V,T extends Throwable> Future<V> executeAsync(TaskListener listener, String rootUsername, String rootPassword, final Callable<V, T> closure) throws T, IOException, InterruptedException {
return _execute(listener,rootUsername,rootPassword,new Actor<Future<V>,T>() {
public Future<V> actHere() throws T {
/**
* Executes the closure asynchronously.
*/
public static <V,T extends Throwable> Future<V> executeAsync(TaskListener listener, String rootUsername, String rootPassword, final Callable<V, T> closure) throws IOException, InterruptedException {
return _execute(listener,rootUsername,rootPassword,new Actor<Future<V>,IOException>() {
public Future<V> actHere() {
return Computer.threadPoolForRemoting.submit(new java.util.concurrent.Callable<V>() {
public V call() throws Exception {
try {
......@@ -94,7 +97,7 @@ public abstract class SU {
});
}
public Future<V> actThere(Channel ch) throws T, IOException, InterruptedException {
public Future<V> actThere(Channel ch) throws IOException, InterruptedException {
return ch.callAsync(closure);
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册