in src/main/java/com/spotify/futures/FuturesExtra.java [1034:1038]
5 lines of code
2 McCabe index (conditional complexity)
public static <T> void checkCompleted(ListenableFuture<T> future) {
if (!future.isDone()) {
throw new IllegalStateException("future was not completed");
}
}