Liking cljdoc? Tell your friends :D

pallet.action-impl

Provides a data structure for pallet's actions. This is the internal representation of an action. User code should use pallet.action, where actions are represented via the functions that insert them into the session action plan.

Each action has a symbol associated with an action is used in error messages. The symbol does not have to resolve to a var.

The execution specifies the execution model for the action.

Precedence is stored as a map, with :always-before and :always-after keys.

Each implementation is represented as a map of metadata and function. The map is stored in a map in an atom on the ::impls key of the metadata of the action, keyed by the dispatch value. This allows for the implementation function to be an anonymous named function, while still having metadata associated with it.

Provides a data structure for pallet's actions. This is the internal
representation of an action. User code should use pallet.action, where actions
are represented via the functions that insert them into the session action
plan.

Each action has a symbol associated with an action is used in error messages.
The symbol does not have to resolve to a var.

The `execution` specifies the execution model for the action.

Precedence is stored as a map, with :always-before and :always-after keys.

Each implementation is represented as a map of metadata and function. The map
is stored in a map in an atom on the ::impls key of the metadata of the
action, keyed by the dispatch value. This allows for the implementation
function to be an anonymous named function, while still having metadata
associated with it.
raw docstring

action-executionclj

(action-execution action)

Return the execution model for the action.

Return the execution model for the action.
sourceraw docstring

action-implementationclj

(action-implementation action dispatch-val)
(action-implementation action dispatch-val default)
source

action-precedenceclj

(action-precedence action)

Return the precedence map for the action.

Return the precedence map for the action.
sourceraw docstring

action-symbolclj

(action-symbol action)

Return the action's symbol.

Return the action's symbol.
sourceraw docstring

add-action-implementation!clj

(add-action-implementation! action dispatch-val metadata f)
source

make-actionclj

(make-action action-symbol execution precedence)

Function to create an action. The action will have no initial implementations.

Function to create an action. The action will have no initial
implementations.
sourceraw docstring

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

× close