We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9c0841 commit dc5a6b4Copy full SHA for dc5a6b4
src/main/clojure/clojure/core/async/impl/dispatch.clj
@@ -85,10 +85,11 @@
85
(or (sysprop-ctor workload) (default-construct-executor workload))
86
(default-construct-executor workload)))
87
88
-(def executor-for
89
- {:compute (construct-executor :compute)
90
- :io (construct-executor :io)
91
- :mixed (construct-executor :mixed)})
+(defn executor-for [workload]
+ (case workload
+ :compute (construct-executor :compute)
+ :io (construct-executor :io)
92
+ :mixed (construct-executor :mixed)))
93
94
(defn exec
95
[^Runnable r workload]
0 commit comments