Open dalegaspi opened 4 years ago
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))))
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.