Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/tech/v3/resource.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
5 changes: 2 additions & 3 deletions src/tech/v3/resource/stack.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down