Asynchronicity in D
Robert Clipsham
robert at octarineparrot.com
Thu Mar 31 09:53:50 PDT 2011
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/
More information about the Digitalmars-d
mailing list