On 31/03/2011 17:26, Andrei Alexandrescu wrote:
foreach (line; byLineAsync("http://d-programming-language.org";))
{
... use line ...
}

What would be awesome is if this was backed by fibers, then you have a really simple and easy wrapper for doing async io, handling lots of connections as the data comes in one thread. Of course a none-by-line version would also be excellent given that a lot of IO doesn't care about new lines.

--
Robert
http://octarineparrot.com/

Reply via email to