📌  相关文章
📜  建议中显示的 java.util.concurrent.CancellationException - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:47.995000             🧑  作者: Mango

代码示例1
@Override
public C get() throws InterruptedException, ExecutionException
{
  _latch.await();
  if (_cause==COMPLETED)
    return _result;
  if (_cause instanceof CancellationException)
    throw (CancellationException) new CancellationException().initCause(_cause);
  throw new ExecutionException(_cause);
}