(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.
(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!
(remove-finally task-var)
Removes from task-var any registered finally function.
Removes from task-var any registered finally function.
(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!
(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.
(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!
(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.
(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!
(remove-postcondition task-var description)
Removes from task-var any postcondition matching description.
Removes from task-var any postcondition matching description.
(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!
(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.
(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!
(remove-precondition task-var description)
Removes from task-var any precondition matching description.
Removes from task-var any precondition matching description.
(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!
(remove-supervise task-var)
Clears supervise hook from task-var.
Clears supervise hook from task-var.
(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.
(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!
(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.
(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.
(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.
(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.
(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.
(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.
(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))
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close