Welcome! Please see the About page for a little more info on how this works.

0 votes
in core.async by

The (link: https://github.com/clojure/core.async/blob/2afc2dc5102f60713135ffca6fab993fb35809f0/src/main/clojure/clojure/core/async.clj#L277 text: documentation) states:

"Completes at most one of several channel operations"

When running the following example, the expected outcome would be a deadlock, but the code returns either (link: 42 c) or (link: true c).

(let [c (clojure.core.async/chan)] (clojure.core.async/alts!! [c [c 42]]))

1 Answer

0 votes
Reference: https://clojure.atlassian.net/browse/ASYNC-208 (reported by alex+import)