Liking cljdoc? Tell your friends :D

promisespromises.stream.promesa-csp


default-connect-via-optsclj/s

source

promesa-csp-bufferclj/s

(promesa-csp-buffer ch n)
source

promesa-csp-close!clj/s

(promesa-csp-close! ch)
source

promesa-csp-connect-viaclj/s

(promesa-csp-connect-via src callback dst)
(promesa-csp-connect-via src
                         callback
                         dst
                         {close-src? :promisespromises.stream/upstream?
                          close-sink? :promisespromises.stream/downstream?
                          :as _opts})

feed all messages from src into callback on the understanding that they will eventually propagate into dst

the return value of callback should be a promise yielding either true or false. when false the downstream sink is assumed to be closed and the connection is severed

feed all messages from src into callback on the
understanding that they will eventually propagate into
dst

the return value of callback should be a promise yielding
either true or false. when false the downstream sink
is assumed to be closed and the connection is severed
sourceraw docstring

promesa-csp-error!clj/s

(promesa-csp-error! sink err)

this is also implemented in impl.. but circular deps...

this is also implemented in impl.. but circular deps...
sourceraw docstring

promesa-csp-put!clj/s

(promesa-csp-put! sink val)
(promesa-csp-put! sink val timeout timeout-val)
source

promesa-csp-streamclj/s≠

clj
(promesa-csp-stream)
(promesa-csp-stream buffer)
(promesa-csp-stream buffer xform)
(promesa-csp-stream buffer xform _executor)
cljs
(promesa-csp-stream)
(promesa-csp-stream buffer)
(promesa-csp-stream buffer xform)
source

promesa-csp-take!clj/s

(promesa-csp-take! source)
(promesa-csp-take! source default-val)
(promesa-csp-take! source default-val timeout timeout-val)
source

promesa-csp-wrap-valueclj/s

(promesa-csp-wrap-value v)

nils can't be put directly on core.async chans, so to present a very similar API on both clj+cljs we wrap nils for core.async

promises can be put on a core.async chan, but cause problems with promesa-csp-take! because auto-unwrapping causes Promise<nil> from the stream to be indistinguishable from a closed channel - so wrapping promises sidesteps this

nils can't be put directly on core.async chans,
so to present a very similar API on both clj+cljs we
wrap nils for core.async

promises can be put on a core.async chan, but cause
problems with promesa-csp-take! because auto-unwrapping
causes Promise<nil> from the stream to be
indistinguishable from a closed channel - so wrapping
promises sidesteps this
sourceraw docstring

stream-factoryclj/s

source

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

× close