File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/clojure/clojure/core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ return nil for unexpected contexts."
338
338
namespace docs)."
339
339
[ports & opts]
340
340
(let [p (promise )
341
- ret (do-alts (on-caller #( deliver p % )) ports (apply hash-map opts))]
341
+ ret (do-alts (on-caller ( ^:once fn* [v] ( deliver p v) )) ports (apply hash-map opts))]
342
342
(if ret
343
343
@ret
344
344
(deref p))))
@@ -448,7 +448,7 @@ return nil for unexpected contexts."
448
448
(defn ioc-alts! [state cont-block ports & {:as opts}]
449
449
(ioc/aset-all! state ioc/STATE-IDX cont-block)
450
450
(when-let [cb (clojure.core.async/do-alts
451
- (fn [val]
451
+ (^:once fn* [val]
452
452
(ioc/aset-all! state ioc/VALUE-IDX val)
453
453
(ioc/run-state-machine-wrapped state))
454
454
ports
You can’t perform that action at this time.
0 commit comments