(deliver req & [info])
Returns an action to add the given request to the end of the next
queue delivery-queue
up in the element tree. An arbitrary info
value can be attached, identifying or describing the request.
Returns an action to add the given request to the end of the next queue [[delivery-queue]] up in the element tree. An arbitrary `info` value can be attached, identifying or describing the request.
(delivery-job req & [info])
Returns a new delivery job, that you can put into the state backing
up a delivery-queue
.
Returns a new delivery job, that you can put into the state backing up a [[delivery-queue]].
(delivery-job-id rec__5474__auto__)
(delivery-job-id data__5475__auto__ v__5476__auto__)
Lens for the id
field from a DeliveryJob
record. See reacl-c-basics.ajax/make-delivery-job
.
Lens for the `id` field from a [[DeliveryJob]] record. See [[reacl-c-basics.ajax/make-delivery-job]].
(delivery-job-info rec__5474__auto__)
(delivery-job-info data__5475__auto__ v__5476__auto__)
Lens for the info
field from a DeliveryJob
record. See reacl-c-basics.ajax/make-delivery-job
.
Lens for the `info` field from a [[DeliveryJob]] record. See [[reacl-c-basics.ajax/make-delivery-job]].
(delivery-job-request rec__5474__auto__)
(delivery-job-request data__5475__auto__ v__5476__auto__)
Lens for the req
field from a DeliveryJob
record. See reacl-c-basics.ajax/make-delivery-job
.
Lens for the `req` field from a [[DeliveryJob]] record. See [[reacl-c-basics.ajax/make-delivery-job]].
(delivery-job-response rec__5474__auto__)
(delivery-job-response data__5475__auto__ v__5476__auto__)
Lens for the response
field from a DeliveryJob
record. See reacl-c-basics.ajax/make-delivery-job
.
Lens for the `response` field from a [[DeliveryJob]] record. See [[reacl-c-basics.ajax/make-delivery-job]].
(delivery-job-status rec__5474__auto__)
(delivery-job-status data__5475__auto__ v__5476__auto__)
Lens for the status
field from a DeliveryJob
record. See reacl-c-basics.ajax/make-delivery-job
.
Lens for the `status` field from a [[DeliveryJob]] record. See [[reacl-c-basics.ajax/make-delivery-job]].
(delivery-job? thing)
Is object a DeliveryJob
record? See reacl-c-basics.ajax/make-delivery-job
.
Is object a `DeliveryJob` record? See [[reacl-c-basics.ajax/make-delivery-job]].
(delivery-queue e lens & [options])
Returns an element that manages a sequence of Ajax requests in its
state, under the given lens
. You can add delivery-job
values
to it, or use deliver
to get an action that can be emitted by
e
. Jobs in the :pending state are executed in parallel,
transitioning into the :running state, and end in the :completed
state (irrespective of success or failure). When (:auto-cleanup? options)
is true, sucessfully completed jobs are eventually removed
from the queue automaticall.
Returns an element that manages a sequence of Ajax requests in its state, under the given `lens`. You can add [[delivery-job]] values to it, or use [[deliver]] to get an action that can be emitted by `e`. Jobs in the :pending state are executed in parallel, transitioning into the :running state, and end in the :completed state (irrespective of success or failure). When `(:auto-cleanup? options)` is true, sucessfully completed jobs are eventually removed from the queue automaticall.
(fetch-once req f)
Returns an invisible element, that will execute the given Ajax
request once, when mounted. When the request completes with an error
or success, then (f response)
is evaluated, which
must return a [[reacl-c.core/return]] value.
Returns an invisible element, that will execute the given Ajax request once, when mounted. When the request completes with an error or success, then `(f response)` is evaluated, which must return a [[reacl-c.core/return]] value.
(make-delivery-job id req info status response)
Construct a DeliveryJob
record.
id
: access via reacl-c-basics.ajax/delivery-job-id
req
: access via reacl-c-basics.ajax/delivery-job-request
info
: access via reacl-c-basics.ajax/delivery-job-info
status
: access via reacl-c-basics.ajax/delivery-job-status
response
: access via reacl-c-basics.ajax/delivery-job-response
Construct a `DeliveryJob` record. `id`: access via [[reacl-c-basics.ajax/delivery-job-id]] `req`: access via [[reacl-c-basics.ajax/delivery-job-request]] `info`: access via [[reacl-c-basics.ajax/delivery-job-info]] `status`: access via [[reacl-c-basics.ajax/delivery-job-status]] `response`: access via [[reacl-c-basics.ajax/delivery-job-response]]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close