IoCompletionRoutine alias
Called for every completion packet of an associated handle.
- Use
#include <ThinkMeta.ConcurrentTasks/Core.h>- Namespace
ThinkMeta::ConcurrentTasks::AsyncIo
Syntax
using IoCompletionRoutine =
void (*)(OVERLAPPED* overlapped, DWORD error, DWORD bytesTransferred) noexcept;Parameters
overlappedOVERLAPPED*- The
OVERLAPPEDthe operation was started with; the caller usually embeds it in its own request object to find that again. errorDWORD- The operation's own code (
ERROR_SUCCESSwhen it succeeded), not a thread-local last error. bytesTransferredDWORD- Number of bytes the operation transferred.
Remarks
Runs on the core's I/O thread for handles associated through AssociateHandleWithIoCompletionPort.
Generated from ThinkMeta.ConcurrentTasks.API @ 137ec1d (2026-10-17).