| Function | Purpose |
|---|---|
| Create a new port or associate an existing handle with a port | |
| Initiate overlapped I/O on an associated handle | |
| Block until a completion packet is available, then dequeue it | |
| Dequeue multiple completion packets in a single call | |
| Inject a synthetic completion packet (e.g., shutdown signal) | |
| Destroy the port; wakes all blocked workers with an error |
| Language | Future / task type | Runtime / executor |
|---|---|---|
| C# | ThreadPool + SynchronizationContext; IOCP-backed on Windows | |
| Rust | tokio or async-std; zero-cost, no heap allocation for leaf futures | |
| Python | asyncio event loop; single-threaded by default | |
| JavaScript | V8 event loop; single-threaded; microtask queue | |
| C++ (C++20) | no standard executor; Asio ( |