diff --git a/doerg/src/net/deertopia/doerg/render.clj b/doerg/src/net/deertopia/doerg/render.clj index b989bc2..e415548 100644 --- a/doerg/src/net/deertopia/doerg/render.clj +++ b/doerg/src/net/deertopia/doerg/render.clj @@ -143,6 +143,16 @@ #(element/of-keyword-type? % "LATEX_HEADER") (sp/view :value)]))) +(defn timeout-snippet-promises [snippet-promises fut] + ;; Time out after eight seconds. With all the LaTeX and IPC, there + ;; are so many opportunities for things to go wrong #(tex/render-snippets @snippet-promises) + sp @snippet-promises + fut (-> #(tex/render-snippets sp) bound-fn* future-call)] - ;; Time out after eight seconds. With all the LaTeX and IPC, there - ;; are so many opportunities for things to go wrong