EventLoop.registerCompletion

int registerCompletion(void * context, CompletionCallback callback) @trusted nothrow

Register a completion handler for IOCP completions.

Parameters

contextOpaque pointer identifying the target object.
callbackFunction to invoke when a completion is dequeued.

Returns

0 on success, or -1 if the table is full.