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

Check for canceled

parent e669edfe
No related branches found
No related tags found
No related merge requests found
......@@ -30,5 +30,7 @@
(future-done? f))
@f))
; Wait for the transaction to finish
(while-with-timeout (not (async/done? (ComputationJob job-id))))
(while-with-timeout (let [job (ComputationJob job-id)]
(not (or (async/done? 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