提交 55c17e37 编写于 作者: K kohsuke

doc improvement.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1374 71c3de6d-444a-0410-be80-ed276b4c234a
上级 bffee521
......@@ -231,9 +231,14 @@ public class Channel {
* <p>
* Similar to {@link #call(Callable)} but returns immediately.
* The result of the {@link Callable} can be obtained through the {@link Future} object.
*
* @return
* The {@link Future} object that can be used to wait for the completion.
* @throws IOException
* If there's an error during the communication.
*/
public <V extends Serializable,T extends Throwable>
Future<V> callAsync(final Callable<V,T> callable) throws IOException, T, InterruptedException {
Future<V> callAsync(final Callable<V,T> callable) throws IOException {
final Future<UserResponse<V>> f = new UserRequest<V, T>(this, callable).callAsync(this);
return new FutureAdapter<V,UserResponse<V>>(f) {
protected V adapt(UserResponse<V> r) throws ExecutionException {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册