(auto-retry num-retries & body)
Execute BODY and return the results. If BODY fails with an exception, retry execution up to NUM-RETRIES times until it succeeds.
Execute BODY and return the results. If BODY fails with an exception, retry execution up to NUM-RETRIES times until it succeeds.
(deref-with-timeout reff timeout-ms)
Call deref
on a something derefable (e.g. a future or promise), and throw an exception if it takes more than
timeout-ms
. If ref
is a future it will attempt to cancel it as well.
Call `deref` on a something derefable (e.g. a future or promise), and throw an exception if it takes more than `timeout-ms`. If `ref` is a future it will attempt to cancel it as well.
(do-with-auto-retries* num-retries f)
Execute F, a function that takes no arguments, and return the results. If F fails with an exception, retry F up to NUM-RETRIES times until it succeeds.
Execute F, a function that takes no arguments, and return the results. If F fails with an exception, retry F up to NUM-RETRIES times until it succeeds.
(ignore-exceptions & body)
Simple macro which wraps the given expression in a try/catch block and ignores the exception if caught.
Simple macro which wraps the given expression in a try/catch block and ignores the exception if caught.
(with-timeout timeout-ms & body)
Run BODY in a future
and throw an exception if it fails to complete after TIMEOUT-MS.
Run BODY in a `future` and throw an exception if it fails to complete after TIMEOUT-MS.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close