Liking cljdoc? Tell your friends :D

dire.core


apply-handlercljmultimethod

source

default-error-handlerclj

(default-error-handler exception & _)
source

hook-supervisor-to-fnclj

(hook-supervisor-to-fn task-var)
source

remove-eager-pre-hookclj

(remove-eager-pre-hook task-var f)

Removes any registered eager pre-hook function f from task-var.

Removes any registered eager pre-hook function f from task-var.
sourceraw docstring

remove-eager-pre-hook!clj

(remove-eager-pre-hook! task-var f)

Removes any eager pre-hook function f from task-var registered through with-eager-pre-hook!

Removes any eager pre-hook function f from task-var registered through
with-eager-pre-hook!
sourceraw docstring

remove-finallyclj

(remove-finally task-var)

Removes from task-var any registered finally function.

Removes from task-var any registered finally function.
sourceraw docstring

remove-finally!clj

(remove-finally! task-var)

Removes from task-var a registered finally clause through with-finally!

Removes from task-var a registered finally clause through with-finally!
sourceraw docstring

remove-handlerclj

(remove-handler task-var exception-selector)

Removes from task-var any handler registered with exception-selector.

Removes from task-var any handler registered with exception-selector.
sourceraw docstring

remove-handler!clj

(remove-handler! task-var exception-selector)

Removes from task-var any handler registered with exception-selector through with-handler!

Removes from task-var any handler registered with exception-selector
through with-handler!
sourceraw docstring

remove-post-hookclj

(remove-post-hook task-var f)

Removes any registered post-hook function f from task-var.

Removes any registered post-hook function f from task-var.
sourceraw docstring

remove-post-hook!clj

(remove-post-hook! task-var f)

Removes any post-hook function f from task-var registered through with-post-hook!

Removes any post-hook function f from task-var registered through
with-post-hook!
sourceraw docstring

remove-postconditionclj

(remove-postcondition task-var description)

Removes from task-var any postcondition matching description.

Removes from task-var any postcondition matching description.
sourceraw docstring

remove-postcondition!clj

(remove-postcondition! task-var description)

Removes from task-var a postcondition matching description registered through with-postcondition!

Removes from task-var a postcondition matching description registered
through with-postcondition!
sourceraw docstring

remove-pre-hookclj

(remove-pre-hook task-var f)

Removes any registered pre-hook function f from task-var.

Removes any registered pre-hook function f from task-var.
sourceraw docstring

remove-pre-hook!clj

(remove-pre-hook! task-var f)

Removes any pre-hook function f from task-var registered through with-pre-hook!

Removes any pre-hook function f from task-var registered through
with-pre-hook!
sourceraw docstring

remove-preconditionclj

(remove-precondition task-var description)

Removes from task-var any precondition matching description.

Removes from task-var any precondition matching description.
sourceraw docstring

remove-precondition!clj

(remove-precondition! task-var description)

Removes from task-var a precondition matching description registered through with-precondition!

Removes from task-var a precondition matching description registered
through with-precondition!
sourceraw docstring

remove-superviseclj

(remove-supervise task-var)

Clears supervise hook from task-var.

Clears supervise hook from task-var.
sourceraw docstring

remove-wrap-hookclj

(remove-wrap-hook task-var f)

Removes any registered wrap-hook function f from task-var.

Removes any registered wrap-hook function f from task-var.
sourceraw docstring

remove-wrap-hook!clj

(remove-wrap-hook! task-var f)

Removes any wrap-hook function f from task-var registered through with-wrap-hook!

Removes any wrap-hook function f from task-var registered through
with-wrap-hook!
sourceraw docstring

selector-matches?cljmultimethod

source

superviseclj

(supervise task-var & args)

Invokes task-var with args as the parameters. If any exceptions are raised, they are dispatched to any predefined handlers.

Invokes task-var with args as the parameters. If any exceptions are raised,
they are dispatched to any predefined handlers.
sourceraw docstring

supervisor#clj

source

with-eager-pre-hookclj

(with-eager-pre-hook task-var f)
(with-eager-pre-hook task-var docstring? f)

After task-var is invoked, eager prehooks evaluated before preconditions, followed by prehooks. You can register any number of eager prehooks. They are not guaranteed to run in any specific order.

After task-var is invoked, eager prehooks evaluated before preconditions,
followed by prehooks. You can register any number of eager prehooks.
They are not guaranteed to run in any specific order.
sourceraw docstring

with-eager-pre-hook!clj

(with-eager-pre-hook! task-var f)
(with-eager-pre-hook! task-var docstring? f)

Same as with-eager-pre-hook, but task-var can be invoked without supervise.

Same as with-eager-pre-hook, but task-var can be invoked without supervise.
sourceraw docstring

with-finallyclj

(with-finally task-var finally-fn)
(with-finally task-var docstring? finally-fn)

Binds finally-fn as the last piece of code to execute within task-var, as if task-var were wrapped in a try/finally. task-var must be invoked via supervise.

Binds finally-fn as the last piece of code to execute within
task-var, as if task-var were wrapped in a try/finally. task-var
must be invoked via supervise.
sourceraw docstring

with-finally!clj

(with-finally! task-var finally-fn)
(with-finally! task-var docstring? finally-fn)

Same as with-finally, but task-var can be invoked without supervise.

Same as with-finally, but task-var can be invoked without supervise.
sourceraw docstring

with-handlerclj

(with-handler task-var exception-selector handler-fn)
(with-handler task-var docstring? exception-selector handler-fn)

Binds handler-fn as the receiver of an exception which matches exception-selector when task-var is invoked via supervise.

Binds handler-fn as the receiver of an exception which matches
exception-selector when task-var is invoked via supervise.
sourceraw docstring

with-handler!clj

(with-handler! task-var exception-selector handler-fn)
(with-handler! task-var docstring? exception-selector handler-fn)

Same as with-handler, but task-var can be invoked without supervise. (e.g. (task-var args))

Same as with-handler, but task-var can be invoked without supervise. (e.g. (task-var args))
sourceraw docstring

with-post-hookclj

(with-post-hook task-var f)
(with-post-hook task-var docstring? f)

After task-var is invoked and postconditions run, and before finally is invoked, post-hooks will run. You can register any number of post-hooks, and they are not guaranteed to run in any specific order. Useful for logging the result of the return value of a function.

After task-var is invoked and postconditions run, and before finally
is invoked, post-hooks will run. You can register any number of post-hooks,
and they are not guaranteed to run in any specific order. Useful for logging
the result of the return value of a function.
sourceraw docstring

with-post-hook!clj

(with-post-hook! task-var f)
(with-post-hook! task-var docstring? f)

Same as with-post-hook, but task-var can be invoked without supervise.

Same as with-post-hook, but task-var can be invoked without supervise.
sourceraw docstring

with-postconditionclj

(with-postcondition task-var description pred-fn)
(with-postcondition task-var docstring? description pred-fn)

After task-var is invoked, pred-fn is evaluated with the return value of task-var. If it return false, description is thrown. task-var must be invoked via supervise.

After task-var is invoked, pred-fn is evaluated with the return value
of task-var. If it return false, description is thrown. task-var must be
invoked via supervise.
sourceraw docstring

with-postcondition!clj

(with-postcondition! task-var description pred-fn)
(with-postcondition! task-var docstring? description pred-fn)

Same as with-postcondition, but task-var can be invoked without supervise.

Same as with-postcondition, but task-var can be invoked without supervise.
sourceraw docstring

with-pre-hookclj

(with-pre-hook task-var f)
(with-pre-hook task-var docstring? f)

After task-var is invoked, eager prehooks and preconditions are evaluated. If all preconditions return true, f is invoked. You can register any number of pre-hooks. They are not guaranteed to run in any specific order. Pre-hooks are useful for logging.

After task-var is invoked, eager prehooks and preconditions are evaluated.
If all preconditions return true, f is invoked. You can register any number of
pre-hooks. They are not guaranteed to run in any specific order. Pre-hooks are
useful for logging.
sourceraw docstring

with-pre-hook!clj

(with-pre-hook! task-var f)
(with-pre-hook! task-var docstring? f)

Same as with-pre-hook, but task-var can be invoked without supervise.

Same as with-pre-hook, but task-var can be invoked without supervise.
sourceraw docstring

with-preconditionclj

(with-precondition task-var description pred-fn)
(with-precondition task-var docstring? description pred-fn)

Before task-var is invoked, pred-fn is evaluated with the original bindings to task-var. If it returns false, description is thrown. task-var must be invoked via supervise.

Before task-var is invoked, pred-fn is evaluated with the
original bindings to task-var. If it returns false, description is thrown.
task-var must be invoked via supervise.
sourceraw docstring

with-precondition!clj

(with-precondition! task-var description pred-fn)
(with-precondition! task-var docstring? description pred-fn)

Same as with-precondition, but task-var can be invoked without supervise.

Same as with-precondition, but task-var can be invoked without supervise.
sourceraw docstring

with-wrap-hookclj

(with-wrap-hook task-var f)
(with-wrap-hook task-var docstring? f)

After task-var is invoked and postconditions run, wrap-hooks will run before post-hooks. You can register any number of wrap-hooks, and they are not guaranteed to run in any specific order. Useful for logging the return value of a function alongside its arguments.

After task-var is invoked and postconditions run, wrap-hooks will
 run before post-hooks. You can register any number of wrap-hooks,
 and they are not guaranteed to run in any specific order. Useful for
logging the return value of a function alongside its arguments.
sourceraw docstring

with-wrap-hook!clj

(with-wrap-hook! task-var f)
(with-wrap-hook! task-var docstring? f)

Same as with-wrap-hook, but task-var can be invoked without supervise.

Same as with-wrap-hook, but task-var can be invoked without supervise.
sourceraw docstring

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

× close