core.async

alts!! completes more than one operation when reading and writing to the same channel.

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    [org.clojure/clojure "1.9.0-alpha16"]
    [org.clojure/core.async "0.3.443"]

Description

The 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 [42 c] or [true c].

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

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated: