(cancel-on-shutdown pipeline)
(cancel-on-shutdown pipeline should-cancel)
Should the pipeline be cancelled when the runtime is shut down
Should the pipeline be cancelled when the runtime is shut down
(dropping pipeline)
(dropping pipeline max-concurrency)
Drop new request while another one is running
Drop new request while another one is running
(enqueued pipeline)
(enqueued pipeline max-concurrency)
Enqueue requests and execute them sequentially
Enqueue requests and execute them sequentially
(keep-latest pipeline)
(keep-latest pipeline max-concurrency)
Drop all intermediate requests, enqueue the last one
Drop all intermediate requests, enqueue the last one
(reset! & args)
reset! that can be used inside pipeline! - returns nil so it doesn't change the current value
reset! that can be used inside pipeline! - returns nil so it doesn't change the current value
(restartable pipeline)
(restartable pipeline max-concurrency)
Cancel any running pipelines and start a new one
Cancel any running pipelines and start a new one
(set-queue pipeline queue)
Explicitly set the queue name. Second argument can be a function in which case, it will be called with the pipeline arguments and should return a queue name
Explicitly set the queue name. Second argument can be a function in which case, it will be called with the pipeline arguments and should return a queue name
(swap! & args)
swap! that can be used inside pipeline! - returns nil so it doesn't change the current value
swap! that can be used inside pipeline! - returns nil so it doesn't change the current value
(use-existing pipeline)
If there is an in flight pipeline started with the same arguments, return its promise instead of starting a new one. It can be combined with any other concurrency behavior (restartable
, dropping
, enqueued
and keep-latest
)
If there is an in flight pipeline started with the same arguments, return its promise instead of starting a new one. It can be combined with any other concurrency behavior (`restartable`, `dropping`, `enqueued` and `keep-latest`)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close