Liking cljdoc? Tell your friends :D

promisespromises.stream.core-async


async-buffercljs

(async-buffer ch n)
source

async-close!cljs

(async-close! ch)
source

async-connect-viacljs

(async-connect-via src callback dst)
(async-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

async-error!cljs

(async-error! sink err)

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

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

async-put!cljs

(async-put! sink val)
(async-put! sink val timeout timeout-val)
source

async-streamcljs

(async-stream)
(async-stream buffer)
(async-stream buffer xform)
source

async-take!cljs

(async-take! source)
(async-take! source default-val)
(async-take! source default-val timeout timeout-val)
source

async-wrap-valuecljs

(async-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 async-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 async-take! because auto-unwrapping
causes Promise<nil> from the stream to be
indistinguishable from a closed channel - so wrapping
promises sidesteps this
sourceraw docstring

default-connect-via-optscljs

source

stream-factorycljs

source

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

× close