Skip to content
Snippets Groups Projects
Commit 60398e69 authored by Simon Belak's avatar Simon Belak
Browse files

Wait for result to become available

parent 09da415e
No related branches found
No related tags found
No related merge requests found
......@@ -32,5 +32,10 @@
(defn result!
"Blocking version of async/result."
[job-id]
(while-with-timeout (not (@job-done? job-id)))
(while-with-timeout (or (not (@job-done? job-id))
(-> job-id
ComputationJob
async/result
(find :result)
nil?)))
(async/result (ComputationJob job-id)))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment