Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java.util.concurrent.CancellationException showing in suggestion

@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);
}
Source by www.codota.com #
 
PREVIOUS NEXT
Tagged: #showing #suggestion
ADD COMMENT
Topic
Name
5+9 =