core-async

isak 2020-06-19T16:35:59.496100Z

Is this an invalid usage of alt!?

(go
    (let [t1 (timeout 10)
          t2 (timeout 20)]
      (let [v (<! (alt! t1 :t1 t2 :t2))]
        (println "V:" v))))
It throws this error:
Exception in thread "async-dispatch-11" java.lang.IllegalArgumentException: No implementation of method: :take! of protocol: #'clojure.core.async.impl.protocols/ReadPort found for class: clojure.lang.Keyword

isak 2020-06-19T16:37:04.496400Z

Oh I see, alt! doesn't return a channel