From 84238dedee215c16fb502eed4faf33250f739e04 Mon Sep 17 00:00:00 2001 From: Will Cohen Date: Sat, 18 Apr 2026 08:50:32 -0400 Subject: [PATCH] docstring updates --- src/tech/v3/resource.clj | 3 +-- src/tech/v3/resource/stack.clj | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/tech/v3/resource.clj b/src/tech/v3/resource.clj index ee8720e..307401d 100644 --- a/src/tech/v3/resource.clj +++ b/src/tech/v3/resource.clj @@ -90,8 +90,7 @@ reference item." (instance? Closeable dispose-fn) (instance? AutoCloseable dispose-fn) (fn? dispose-fn)) - (throw (ex-info "The dispose method must implement be Runnable, Closeable, or a -clojure function." + (throw (ex-info "The dispose method must be Runnable, Closeable, AutoCloseable, or a Clojure function." {:dispose-fn dispose-fn}))) (track-impl item dispose-fn track-type)))) ([item] diff --git a/src/tech/v3/resource/stack.clj b/src/tech/v3/resource/stack.clj index 862dd35..03d1d6a 100644 --- a/src/tech/v3/resource/stack.clj +++ b/src/tech/v3/resource/stack.clj @@ -102,9 +102,8 @@ This is probably a memory leak.")) (defn release-current-resources - "Release all resources matching either a predicate or all resources currently tracked. - Returns any exceptions that happened during release but continues to attempt to - release anything else in the resource list." + "Release all resources matching either a predicate or all resources currently + tracked. Errors are logged, not returned." ([pred] (->> (if pred (ignore-resources pred)