Liking cljdoc? Tell your friends :D

lambdaroyal.dispatch.core


dispatcherclj

(dispatcher & params)

Creates a dispatcher. Optional params are: :on-done :: job -> nil :on-failed :: {:keys [started-at stopped-at :error-message :id] :as job} -> nil :on-start :: job -> nil :frequency (default 1000) using this frequency we poll for jobs to execute :verbose (default false)

Creates a dispatcher. Optional params are:
:on-done :: job -> nil
:on-failed :: {:keys [started-at stopped-at :error-message :id] :as job} -> nil
:on-start :: job -> nil
:frequency (default 1000) using this frequency we poll for jobs to execute
:verbose (default false)
sourceraw docstring

PDispatchercljprotocol

dispatchclj

(dispatch this queue es lambda)

dispatches a job for execution. queue is the name of the queues to dispatch the job to, es is the execution time (ET) as unix epoch, lambda λ is a parameterless function that gets called when the job to be executed

dispatches a job for execution. queue is the name of the queues to dispatch the job to, es is the execution time (ET) as unix epoch, lambda λ is a parameterless function that gets called when the job to be executed

pauseclj

(pause this queue)

pauses the execution of jobs for the queue with name queue

pauses the execution of jobs for the queue with name queue

resumeclj

(resume this queue)

resumes executing jobs in a given queue with name queue

resumes executing jobs in a given queue with name queue

stopclj

(stop this)

stop the dispatch from accepting new jobs, all currently running queue workers will eventually terminate. returns a promise (TODO: that gets realized once all jobs queue workers finished

stop the dispatch from accepting new jobs, all currently running queue workers will eventually terminate. returns a promise (TODO: that gets realized once all jobs queue workers finished
source

uidclj

(uid)

returns a random key of length 9 containing [1..9 a..z A..Z] except for 0,I,O,l

returns a random key of length 9 containing [1..9 a..z A..Z] except for 0,I,O,l
sourceraw docstring

when-let*cljmacro

(when-let* bindings & body)
source

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

× close