Liking cljdoc? Tell your friends :D

keechma.toolbox.pipeline.core


begin-formsclj

(begin-forms acc {:keys [begin-args begin-body]})
source

broadcast!cljs

(broadcast! command payload)

Broadcast pipeline sideffect.

Accepts command and payload arguments.

Broadcast pipeline sideffect.

Accepts `command` and `payload` arguments.
sourceraw docstring

BroadcastSideffectcljs

source

call-sideffectcljs

(call-sideffect sideffect ctrl app-db-atom pipelines$)
source

cancel-pipelines!cljs

(cancel-pipelines! pipeline-filter)
source

CancelPipelinesSideffectcljs

source

commit!cljs

(commit! value)
(commit! value cb)

Commit pipeline sideffect.

Accepts value or value and callback as arguments. Value should be a new version of app-db.

(commit! (assoc-in app-db [:kv :user] {:username "retro"}))

If the callback argument is present, this function will be called immediately after the app-db-atom is updated. This is useful if you want to force Reagent to re-render the screen.

Commit pipeline sideffect.

Accepts `value` or `value` and `callback` as arguments. Value should be a new version of app-db.

```clojure
(commit! (assoc-in app-db [:kv :user] {:username "retro"}))

```

If the callback argument is present, this function will be called immediately after the app-db-atom is updated.
This is useful if you want to force Reagent to re-render the screen.
sourceraw docstring

CommitSideffectcljs

source

do!cljs

(do! & sideffects)

Runs multiple sideffects sequentially:

(do!
  (commit! (assoc-in app-db [:kv :current-user] value))
  (redirect! {:page "user" :id (:id user)}))
Runs multiple sideffects sequentially:

```clojure
(do!
  (commit! (assoc-in app-db [:kv :current-user] value))
  (redirect! {:page "user" :id (:id user)}))
```
sourceraw docstring

DoSideffectcljs

source

Errorcljs

source

exclusivecljs

(exclusive pipeline)
source

execute!cljs

(execute! command)
(execute! command payload)

Execute pipeline sideffect.

Accepts command and payload arguments. Use this if you want to execute a command on the current controller.

Execute pipeline sideffect.

Accepts `command` and `payload` arguments. Use this if you want to execute a command on the current controller.
sourceraw docstring

ExecuteSideffectcljs

source

expand-bodyclj

(expand-body args body)
source

extract-pipeline-partsclj

(extract-pipeline-parts args body)
source

ISideffectcljsprotocol

call!cljs

(call! this controller app-db-atom pipelines$)
source

make-pipelineclj

(make-pipeline args)
source

pipeline!cljmacro

(pipeline! args & body)
source

pipeline-errorscljs

source

pipeline-running?cljs

(pipeline-running? pipelines$ running-check-path)
source

prepare-body-argsclj

(prepare-body-args args)
source

prepare-pipelineclj

(prepare-pipeline args body)
source

prepare-running-pipelinescljs

(prepare-running-pipelines pipelines)
source

redirect!cljs

(redirect! params)
(redirect! params action)

Redirect pipeline sideffect.

Accepts params argument. Page will be redirected to a new URL which will be generated from the passed in params argument. If you need to access the current route data, it is present in the pipeline app-db argument under the [:route :data] path.

Redirect pipeline sideffect.

Accepts `params` argument. Page will be redirected to a new URL which will be generated from the passed in params argument. If you need to 
access the current route data, it is present in the pipeline `app-db` argument under the `[:route :data]` path.
sourceraw docstring

RedirectSideffectcljs

source

reroute!cljs

(reroute!)
source

RerouteSideffectcljs

source

rescue-formsclj

(rescue-forms acc {:keys [begin-args rescue-args rescue-body]})
source

run-pipeline!cljs

(run-pipeline! pipeline-key)
(run-pipeline! pipeline-key args)

Runs a pipeline in a way that blocks the current pipeline until the current pipeline is done. It behaves same as `execute! but blocks the parent pipeline until it's done. Return value and errors will be ignored by the parent pipeline.

Runs a pipeline in a way that blocks the current pipeline until the current pipeline is done. It behaves same as `execute! but blocks the parent pipeline until it's done. Return value and errors will be ignored by the parent pipeline.
sourceraw docstring

RunPipelineSideffectcljs

source

send-command!cljs

(send-command! command)
(send-command! command payload)

Send command pipeline sideffect.

Accepts command and payload arguments. Command should be a vector where first element is the controller topic, and the second element is the command name.

Send command pipeline sideffect.

Accepts `command` and `payload` arguments. Command should be a vector where first element is the controller topic, and the second
element is the command name. 
sourceraw docstring

SendCommandSideffectcljs

source

wait-pipelines!cljs

(wait-pipelines! pipeline-filter)
source

WaitPipelinesSideffectcljs

source

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

× close