Liking cljdoc? Tell your friends :D

barebuild.transport

Getting the bytes: decorate the request, send it, and give up when the budget runs out or a teardown aborts. Knows nothing of resources, consumers, intents or the DOM.

Getting the bytes: decorate the request, send it, and give up when the budget runs out or a
teardown aborts. Knows nothing of resources, consumers, intents or the DOM.
raw docstring

abort-error?cljs

(abort-error? e)

True when e is a request ended on purpose rather than one that failed.

True when `e` is a request ended on purpose rather than one that failed.
sourceraw docstring

boundedcljs

(bounded operation ms controller)

Race operation against the two things that end a request early: an abort, and the budget running out. A spent budget aborts the controller with the timeout error as the reason, and aborted rejects with whatever reason the signal carries, so the budget needs no racer of its own and only its timer is left to clear.

Race `operation` against the two things that end a request early: an abort, and the budget
running out. A spent budget aborts the controller with the timeout error as the reason, and
`aborted` rejects with whatever reason the signal carries, so the budget needs no racer of its
own and only its timer is left to clear.
sourceraw docstring

perform!cljs

(perform! m controller)

The request pipeline shared by reads and writes: decorate, send, and give up when the budget runs out. Resolves to an envelope, a {:network-failure ...} or a {:protocol-failure ...}, and rejects when the request never completed, for the caller to classify.

The request pipeline shared by reads and writes: decorate, send, and give up when the budget
runs out. Resolves to an envelope, a {:network-failure ...} or a {:protocol-failure ...}, and
rejects when the request never completed, for the caller to classify.
sourceraw docstring

transport-errorcljs

(transport-error e ms)

Classify a rejected request: a spent budget, or a transport failure. An abort is neither and reads as :offline, so a caller whose request can be aborted tests abort-error? first.

Classify a rejected request: a spent budget, or a transport failure. An abort is neither and
reads as :offline, so a caller whose request can be aborted tests `abort-error?` first.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close