Channel returned by to-chan not immediately ready for taking?

Description

Not sure if this is really a bug but it stroke me as odd:

Seems like the channel returned by to-chan should always be immediately ready for taking. Then again this is not mentioned in its docstring so maybe it's all fine. Just thought I'd file it in case it might hint at some deeper issue with poll! or to-chan.

Environment

[org.clojure/clojure "1.9.0-alpha16"]
[org.clojure/core.async "0.3.443"]

Activity

Show:

import August 11, 2017 at 6:21 PM

Comment made by: dergutemoritz

Agreed, and it's totally in line with how it's documented anyway, so feel free to close. Sorry for the noise

Alex Miller August 11, 2017 at 6:04 PM

async/to-chan uses async/onto-chan, which fills the channel via an asynchronous go loop, so there is a slight delay before the first value is available in this channel. I'm not sure what, if anything, I would call an error in that stack of calls.

Won't Fix

Details

Assignee

Reporter

Priority

Created August 11, 2017 at 5:43 PM
Updated November 2, 2020 at 8:59 PM
Resolved November 2, 2020 at 8:59 PM