
16 Jul
2007
16 Jul
'07
11:52 a.m.
On 2007-07-16, Claus Reinke
When you're done writing, just stop writing.
yes, but any user of getChanContents will be left hanging! that kind of function doesn't really work well without a way to tell it that it has nothing more to wait for.
Yeah, getChanContents is not suitable for streams that may end. A note in the documentation to this effect may be useful. Some sort of unfold-like combinator to lazily read from a Chan (Maybe a) into a list may be useful instead. -- Aaron Denney -><-