clojure.core.async.impl.ioc-macros/return-chan registers an incorrect callback on a channel.

Description

return-chan is registering a fn callback on a channel that takes no-args, callbacks on channels always take an arg. This results in an exception if the callback is ever called. I am not sure why, but the callback doesn't get called most of the time. However if you are (un)lucky sometimes you get a stacktrace like:

Environment

None
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Kevin Downey

Reporter

Kevin Downey

Patch

Code