Liking cljdoc? Tell your friends :D

promisefx.control.prws


ctxclj/s

source

failure-rwpromise-mvclj/s

(failure-rwpromise-mv ctx e)

t: <env> -> Promise<log,val>

t: <env> -> Promise<log,val>
sourceraw docstring

failure-rwpromise-resultclj/s

(failure-rwpromise-result e)
(failure-rwpromise-result e failure-channel)

take an exception and some failure-channel data, and return a Promise of failure... which is an ex-info holding the failure channel data

if the provided exception already has failure-channel data, then it's a wrapped exception, in which case, preserve the original cause in a new wrapper (along with the provided failure-channel data)

if the provided exception does not have failure-channel data, then it is the cause, so use it as the cause in a new wrapper, along with the provided failure-channel data

t: Promise<log,val>

take an exception and some failure-channel data, and return
a Promise of failure... which is an ex-info holding the failure
channel data

if the provided exception already has failure-channel data, then
it's a wrapped exception, in which case, preserve the original cause
in a new wrapper (along with the provided failure-channel data)

if the provided exception does not have failure-channel data, then
it is the cause, so use it as the cause in a new wrapper, along with
the provided failure-channel data

t: Promise<log,val>
sourceraw docstring

platform-exception-wrapper?clj/s

(platform-exception-wrapper? e)
source

rw-promise-t-bind-2clj/s

(rw-promise-t-bind-2 output-ctx inner-ctx m inner-mv discard-val? inner-2-mf)
source

rwpromise-mvclj/s

(rwpromise-mv ctx f)
source

rwpromise-mv?clj/s

(rwpromise-mv? v)
source

RWPromiseMVclj/s

source

RWPromiseTCtxcljs

source

success-rwpromise-mvclj/s

(success-rwpromise-mv ctx v)
source

tagged-ctxclj/s

source

unwrap-causeclj/s

(unwrap-cause e)

get at the original exception

if the provided exception has failure-channel data, then it wraps the original exception

if the provided exception has no failure-channel data, then it is the original exception

get at the original exception

if the provided exception has failure-channel data, then it wraps the
original exception

if the provided exception has no failure-channel data, then it is the
original exception
sourceraw docstring

unwrap-exceptionclj/s

(unwrap-exception e)

remove j.u.c exception wrappers

remove j.u.c exception wrappers
sourceraw docstring

unwrap-failure-channelclj/s

(unwrap-failure-channel e)

we use an ex-data to propagate effects in case of failure. we do this because j.u.c.CompletableFutures only supports Exceptions as failure cases

we use an ex-data to propagate effects in case of failure. we do
this because j.u.c.CompletableFutures only supports Exceptions as
failure cases
sourceraw docstring

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

× close