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

Check for cancelation

parent 10c24ba2
No related branches found
No related tags found
No related merge requests found
......@@ -33,8 +33,7 @@
"Blocking version of async/result."
[job-id]
(while-with-timeout (not (and (@job-done? job-id)
(-> job-id
ComputationJob
async/result
(find :result)))))
(let [job (ComputationJob job-id)]
(or (:result (async/result job))
(async/canceled? job))))))
(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