Asynchronicity in D
Robert Clipsham
robert at octarineparrot.com
Thu Mar 31 09:58:00 PDT 2011
On 31/03/2011 17:53, Robert Clipsham wrote:
> 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/
To clarify, this isn't much use for clients, but for servers it could be
useful, or if you're wanting to act as multiple clients.
--
Robert
http://octarineparrot.com/
More information about the Digitalmars-d
mailing list