Liking cljdoc? Tell your friends :D

cljs.core.async.impl.protocols


add!cljs

(add! b)
(add! b itm)

Buffercljsprotocol

remove!cljs

(remove! b)

remove and return next item from buffer, called under chan mutex

remove and return next item from buffer, called under chan mutex

close-buf!cljs

(close-buf! b)

called on chan closed under chan mutex, return ignored

called on chan closed under chan mutex, return ignored

full?cljs

(full? b)

returns true if buffer cannot accept put

returns true if buffer cannot accept put

add!*cljs

(add!* b itm)

if room, add item to the buffer, returns b, called under chan mutex

if room, add item to the buffer, returns b, called under chan mutex

Channelcljsprotocol

close!cljs

(close! chan)

closed?cljs

(closed? chan)

Handlercljsprotocol

blockable?cljs

(blockable? h)

returns true if this handler may be blocked, otherwise it must not block

returns true if this handler may be blocked, otherwise it must not block

active?cljs

(active? h)

returns true if has callback. Must work w/o lock

returns true if has callback. Must work w/o lock

commitcljs

(commit h)

commit to fulfilling its end of the transfer, returns cb. Must be called within lock

commit to fulfilling its end of the transfer, returns cb. Must be called within lock

MAX-QUEUE-SIZEcljs


ReadPortcljsprotocol

take!cljs

(take! port fn1-handler)

derefable val if taken, nil if take was enqueued

derefable val if taken, nil if take was enqueued

UnblockingBuffercljsprotocol


WritePortcljsprotocol

put!cljs

(put! port val fn1-handler)

derefable boolean (false if already closed) if handled, nil if put was enqueued. Must throw on nil val.

derefable boolean (false if already closed) if handled, nil if put was enqueued.
Must throw on nil val.

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

× close