(->async-runnable f)Converts a Clojure function to a Failsafe AsyncRunnable.
Converts a Clojure function to a Failsafe AsyncRunnable.
(->checked-function f)Converts a Clojure function to a Failsafe CheckedFunction.
Converts a Clojure function to a Failsafe CheckedFunction.
(->checked-predicate f)Converts a Clojure function to a Failsafe CheckedPredicate.
Converts a Clojure function to a Failsafe CheckedPredicate.
(->contextual-supplier f)Converts a Clojure function to a Failsafe ContextualSupplier.
Converts a Clojure function to a Failsafe ContextualSupplier.
(->event-listener f)Converts a Clojure function to a Failsafe EventListener.
Converts a Clojure function to a Failsafe EventListener.
(->executor)(->executor executor-or-policies)(->executor pool executor-or-policies)Creates a FailsafeExecutor with the given thread pool and policies. If no policies are provided, uses Failsafe.none() If no pool is provided, uses a default thread pool.
Creates a FailsafeExecutor with the given thread pool and policies. If no policies are provided, uses Failsafe.none() If no pool is provided, uses a default thread pool.
(execute-get executor-or-policies execute-fn)Executes the given CheckedSupplier using the Failsafe executor.
Executes the given CheckedSupplier using the Failsafe executor.
(execute-get-async executor-or-policies execute-fn)Executes the given CheckedSupplier using the Failsafe executor.
Executes the given CheckedSupplier using the Failsafe executor.
(get-policy-list & policy-args)Returns a Failsafe-compatible sequence of policies.
Returns a Failsafe-compatible sequence of policies.
(get-pool pool)Returns a Failsafe-compatible thread pool. If pool is a keyword, looks up the pool using futurama.core/get-pool.
Otherwise, returns the provided pool, a default thread pool, or falls back to futurama.core/get-pool :io.
Returns a Failsafe-compatible thread pool. If `pool` is a keyword, looks up the pool using `futurama.core/get-pool`. Otherwise, returns the provided pool, a default thread pool, or falls back to `futurama.core/get-pool :io`.
Protocol for building Failsafe policies.
Protocol for building Failsafe policies.
(build-policy this)Builds and returns the Failsafe Policy instance.
Builds and returns the Failsafe Policy instance.
(record-async-failure context error)Records the error of an execution in the given ExecutionContext.
Records the error of an execution in the given ExecutionContext.
(record-async-success context result)Records the result of an execution in the given ExecutionContext.
Records the result of an execution in the given ExecutionContext.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |