Announcing libasync, a cross-platform D event loop

Etienne Cimon via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 25 19:38:59 PDT 2014


On 2014-09-25 19:34, Martin Nowak wrote:
> One thing that always bothers me with async libraries is that now every
> IO class has it async cousin, so there is Socket and AsyncSocket,
> resolveDNS and asyncResolveDNS.
> With Fibers and a Scheduler it's actually possible to present the same
> API to asynchronous and synchronous code. I'd really like to see this at
> some point, but a cross-platform event loop in phobos is a great first
> step.

Exactly, though I'm pretty sure this could be solved by moving vibe core 
to std.vibe, and then adding it as a dependency for std.socket and 
std.concurrency. It doesn't feel right having the future/promise aside 
of fibers with a scheduler, it needs to be done correctly from the start.


More information about the Digitalmars-d mailing list