Welcome! Please see the About page for a little more info on how this works.

0 votes
in core.async by

After running into a race-condition involving closed timeout channels, it seems like it would be appropriate to mention that close! should never be called on a timeout channel in its docstring. The attached patch tweaks the doc string to that effect. Please advise if you'd like the wording changed a bit.

4 Answers

0 votes
by

Comment made by: hlewisship

Alternately/additionally, it would be nice if close! on a timeout channel would throw an exception.

0 votes
by

Comment made by: slipset

or alternately, make it a no-op?

0 votes
by

Comment made by: alexmiller

Yeah, I think it would be better to fix this than doc it.

0 votes
by
Reference: https://clojure.atlassian.net/browse/ASYNC-109 (reported by alex+import)
...