add reference to vthread source

This commit is contained in:
Scott Richmond 2023-01-28 17:42:17 -05:00
parent b7f0d17afe
commit ccddfa07c5

View File

@ -3,7 +3,8 @@
[ludus.data :as data]) [ludus.data :as data])
(:import (java.util.concurrent Executors))) (:import (java.util.concurrent Executors)))
(defn thread-factory [name] ;; virtual thread patch from https://ales.rocks/notes-on-virtual-threads-and-clojure
(defn- thread-factory [name]
(-> (Thread/ofVirtual) (-> (Thread/ofVirtual)
(.name name 0) (.name name 0)
(.factory))) (.factory)))