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.
(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.
(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.
(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.(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |