Skip to content

Commit e54cf30

Browse files
committed
ensure vector of ports in alts
1 parent 5ea114c commit e54cf30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/clojure/clojure/core/async.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ to catch and handle."
274274
[fret ports opts]
275275
(assert (pos? (count ports)) "alts must have at least one channel operation")
276276
(let [flag (alt-flag)
277+
ports (vec ports) ;; ensure vector for indexed nth
277278
n (count ports)
278279
^ints idxs (random-array n)
279280
priority (:priority opts)

0 commit comments

Comments
 (0)