code: public static BiConsumer<Object, Throwable> closeInputStreamAsync(final InputStream input) {
          return (val, err) -> {
              try {
                  input.close();
              } catch (final IOException ex) {
                  throw new UncheckedIOException("Error closing input stream", ex);
              }
          };
      }
docs: Close an input stream in an async chain.
  @param input the input stream
  @return a bifunction that closes the stream