Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core.async promise-chan broken #277

Open
ashercoren opened this issue Jul 2, 2017 · 1 comment
Open

core.async promise-chan broken #277

ashercoren opened this issue Jul 2, 2017 · 1 comment

Comments

@ashercoren
Copy link

(require-macros '[cljs.core.async.macros :refer [go]])
(require '[cljs.core.async :refer [promise-chan chan tap untap timeout mult <! >!]])

(def p-c (promise-chan))

(dotimes [_ 3] (go (println (<! p-c))))

(go (>! p-c 1))

It should print '1' three times. but it only prints one. I think this is due to https://dev.clojure.org/jira/browse/ASYNC-159. It was fixed in the latest version of core-async.

@ashercoren
Copy link
Author

I opened a pull-request which I hope fixes this: #276

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant