🎉 Add better error reporting.

This commit is contained in:
Andrey Antukh 2020-12-04 20:38:38 +01:00 committed by Alonso Torres
parent a881d86637
commit 4d7a34a998
14 changed files with 238 additions and 72 deletions

View file

@ -380,7 +380,7 @@
(defn thread-pool
([] (thread-pool {}))
([{:keys [min-threads max-threads name]
:or {min-threads 0 max-threads 128}}]
:or {min-threads 0 max-threads 256}}]
(let [executor (QueuedThreadPool. max-threads min-threads)]
(.setName executor (or name "default-tp"))
(.start executor)