Function Inotifier.consumeAllEvents

Discard all pending events.

void consumeAllEvents () @nogc @trusted;

This function discards all pending events, both from the memory cache and from the OS. All events in the inotify fd are discarded, regardless of which watch descriptor they belong to.

This function does not sleep.