(clet bindings & body)
This is similar to promesa let. But this only returns a promise if some of the bindings is a promise. Otherwise returns values as-is. This function is intended to use in places that you want to be compatible with both sync and async processes.
This is similar to promesa let. But this only returns a promise if some of the bindings is a promise. Otherwise returns values as-is. This function is intended to use in places that you want to be compatible with both sync and async processes.
(ctry & body)
This is a helper to enable catching of both sync and async exceptions.
(ctry (clet [foo (maybe-async-op)] (handle-result foo)) (catch Throwable e :error))
This is a helper to enable catching of both sync and async exceptions. (ctry (clet [foo (maybe-async-op)] (handle-result foo)) (catch Throwable e :error))
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close