core.async

go blocks don't handle explicitly namespaced calls to <! and >!

Details

  • Type: Defect Defect
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    [org.clojure/clojure "1.5.1"]
    [org.clojure/clojurescript "0.0-1844"]
    [org.clojure/core.async "0.1.0-SNAPSHOT"]

Description

When <Unable to render embedded object: File (, >) not found., or the go macro is explicitly namespaced, the assertion that <! or >! was called outside of a go block is raised.

Example:
(ns foo
(:require [cljs.core.async :as async)
(:require-macros [cljs.core.async.macros :refer [go]))

;; raises assertion error
(let [c (async/chan)]
(async/go
(loop []
(async/<! c)
(recur))))

Activity

Hide
Timothy Baldridge added a comment -
Show
Timothy Baldridge added a comment - Fixed in master https://github.com/clojure/core.async/commit/12af7d8dc207a42f388936318dd2eeb48d1b03c8 Was a problem only in CLJS

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: