default <R, X extends Exception> R withStream(StreamCallback<T, R, X> callback) throws X {
        try (Stream<T> stream = stream()) {
            return callback.withStream(stream);
        }
    }
Passes the stream of results to the callback. Database resources owned by the query are
released before this method returns.

@param callback a callback which receives the stream of results, and returns some result.
@param <R> the type returned by the callback
@param <X> the exception type thrown by the callback, if any

@return the value returned by the callback.

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