core.async

Channel returned by cljs.core.async/map> is missing protocol method Channel.closed?

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Declined
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Environment:
    [org.clojure/clojure "1.5.1"]
    [org.clojure/clojurescript "0.0-2173"]
    [org.clojure/core.async "0.1.278.0-76b25b-alpha"]
  • Patch:
    Code

Description

E.g.

(let [ch (->> (chan) (map> inc) (filter> even?))]
  (doseq [i (range 10)] (put! ch i)))

When filter> checks to see if the channel returned by map> is closed?, this code fails because the channel returned by map> does not implement the Channel.closed? protocol method.

Activity

Hide
Alex Miller added a comment -

map> and filter> have been deprecated and will be removed in a future release. They have been replaced with applying transducers to a channel which is now available.

Show
Alex Miller added a comment - map> and filter> have been deprecated and will be removed in a future release. They have been replaced with applying transducers to a channel which is now available.
Hide
Kevin Neaton added a comment -

Great, thanks for the update.

Show
Kevin Neaton added a comment - Great, thanks for the update.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: