snoyberg/xml — comment on commit a4763739093c525d8f509b11e72a2d17894afaac
File:  line 0
By snoyberg:

I've wondered that for a while about enumerator. I'm worried about the interaction with the multithreaded runtime, as I clearly haven't done anything to address that here. But after looking at GHC.Conc a bit, I wonder if it would be simple enough to just call threadWaitRead at the beginning of read. I also know that Johan had mentioned multi-threaded stuff doesn't work properly with files right now because they always report being ready to read, it's probably a good idea to get his input on this.

One other concern is that, for writing, we would need to consider whether or not to buffer the input. It's simple enough to say "buffering's your problem, use blaze-builder", and then provide a buffer conduit over there.

What do you think?