Announcing libasync, a cross-platform D event loop

Etienne Cimon via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 28 10:10:16 PDT 2015


On Sunday, 28 June 2015 at 16:57:44 UTC, Suliman wrote:
> Also next code that I take from example after run absolutely do 
> not do nothing:

This code will register a directory watcher in the working 
directory, on the thread's event loop, and then use timers to 
create file/folder activity to trigger this directory watcher.

The only thing needed to make this work is r/w access to the 
working directory and a running event loop.

So, adding the line:

g_evl.run(10.seconds);

If you don't have an event loop running, your application is 
basically not going to receive callback events.


More information about the Digitalmars-d mailing list