404405406407408409410411412413414
private static void cancel(final AtomicReferenceArray<FutureResponse> futures) { int len = futures.length(); for (int i = 0; i < len; i++) { BaseFuture baseFuture = futures.get(i); if (baseFuture != null) { baseFuture.cancel(); } } } /**
707708709710711712713714715716717
250251252253254255256257258259260
public void cancel() { int len = futureResponses.length(); for (int i = 0; i < len; i++) { BaseFuture baseFuture = futureResponses.get(i); if (baseFuture != null) { baseFuture.cancel(); } } } public AtomicReferenceArray<FutureResponse> futureResponses() {