Back

counted-thread-factory (clj)

(source)

function

(counted-thread-factory name-format daemon) (counted-thread-factory name-format daemon {:keys [init-fn], :as opts})
Create a ThreadFactory that maintains a counter for naming Threads. name-format specifies thread names - use %d to include counter daemon is a flag for whether threads are daemons or not opts is an options map: init-fn - function to run when thread is created

Examples