Liking cljdoc? Tell your friends :D
All platforms.

com.wsscode.promesa.macros


cletclj/smacro

(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.
sourceraw docstring

ctryclj/smacro

(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))
sourceraw docstring

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

× close