Liking cljdoc? Tell your friends :D

piotr-yuxuan.closeable-map


*swallow?*clj

Dynamic var. If found bound to a logically true value in closing thread, will swallow any java.lang.Throwable, the top class for all exceptions in Java.

Because clojure.walk/walk is used for map traversal, it is not possible to pass any closeable context as an argument. Also, as we iteratively walk through nested datastructure, some of them do not support metadata so we can't attach swallow to the children. As a result, a binding on this dynamic var in the execution thread allows for a simple way to remember the parent value as we visit the children.

Dynamic var. If found bound to a logically true value in closing
thread, will swallow any `java.lang.Throwable`, the top class for
all exceptions in Java.

Because `clojure.walk/walk` is used for map traversal, it is not
possible to pass any closeable context as an argument. Also, as we
iteratively walk through nested datastructure, some of them do not
support metadata so we can't attach swallow to the children. As a
result, a binding on this dynamic var in the execution thread allows
for a simple way to remember the parent value as we visit the
children.
sourceraw docstring

close!clj

(close! form)

FIXME cljdoc

FIXME cljdoc
sourceraw docstring

closeable-mapclj

(closeable-map m)
source

visitorclj

FIXME cljdoc

FIXME cljdoc
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close