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 {
version(use_arsd_core)
ICoreEventLoop.UnregisterToken unregisterToken;
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()

Meta