default <X extends Exception> void useStream(StreamConsumer<T, X> consumer) throws X {
        withStream(stream -> {
            consumer.useStream(stream);
            return null;
        });
    }
Passes the stream of results to the consumer. Database resources owned by the query are
released before this method returns.

@param consumer a consumer which receives the stream of results.
@param <X> the exception type thrown by the callback, if any

@throws X any exception thrown by the callback
core/src/main/java/org/jdbi/v3/core/result/ResultIterable.java