code: private static <V> ListenableFuture<V> closedChannelFuture() {
      SettableFuture<V> future = SettableFuture.create();
      future.setException(new ClosedChannelException());
      return future;
    }
docs: Immediate future indicating that the channel is closed.