V
-方法
call
结果类型
@FunctionalInterface public interface Callable<V>
call
的Callable
接口类似于Runnable
,,是专为其实例的类可能被另一个线程执行。然而,Runnable
,不返回结果并不能抛出异常。
Executors
类包含的实用方法与其他常见的形式转换为Callable
类。
Executor
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.