We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is there an equivalent construct here that allows something like this:
(require '[diehard.core :as dh]) (dh/with-retry {:retry-on TimeoutException :max-retries 3} (fetch-data-from-the-moon-future))
where fetch-data-from-the-moon-future is a future(...) and of course the function will return another future?
fetch-data-from-the-moon-future
future(...)
future
...i mean it doesn't have to be a future, it can be a thread or anything else as long as async construct equivalents are available.
thread
The text was updated successfully, but these errors were encountered:
At the moment it is not possible. Can you put the synchronise block into a future, like
(defn fetch-data-from-the-moon-future [] (future (dh/with-retry {:retry-on TimeoutException :max-retries 3} (fetch-data-from-the-moon))))
Sorry, something went wrong.
No branches or pull requests
is there an equivalent construct here that allows something like this:
where
fetch-data-from-the-moon-future
is afuture(...)
and of course the function will return anotherfuture
?...i mean it doesn't have to be a
future
, it can be athread
or anything else as long as async construct equivalents are available.The text was updated successfully, but these errors were encountered: