Preliminary. ThinkMeta ConcurrentTasks and this documentation are preliminary; everything is subject to change.

API reference / Core

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 OVERLAPPED the 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_SUCCESS when 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).