WindowsHandleReader

Lets you add HANDLEs to the event loop. Not meant to be used for async I/O per se, but for other handles (it can only handle a few handles at a time.) Only works on certain types of handles! See: https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-msgwaitformultipleobjectsex

version(Windows)
class WindowsHandleReader {
HANDLE handle;
void delegate() onReady;
__gshared
WindowsHandleReader[HANDLE] mapping;
}

Constructors

this
this(void delegate() onReady, HANDLE handle)

Members

Functions

disable
void disable()
enable
void enable()
Suggestion Box / Bug Report