Java Thread Callable call(Callable callable)

Here you can find the source of call(Callable callable)

Description

call

License

Open Source License

Declaration

public static <T> T call(Callable<T> callable) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.concurrent.Callable;

public class Main {
    public static <T> T call(Callable<T> callable) {
        try {//  w  w w.  j a v  a 2s. com
            return callable.call();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}

Related

  1. call(final Callable c)
  2. callableListCreator()
  3. callConditionAndReturnResult(Callable condition)
  4. callInLoader(Callable body, ClassLoader loader)