mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-26 12:34:22 +01:00
Introduces a completion group abstraction that allows grouping multiple I/O completions together for coordinated tracking and error handling. This enables: - Tracking completion status of multiple I/O operations as a group - Detecting when all operations in a group have finished - Aborting all operations in a group atomically - Retrieving errors from any completion in the group The implementation uses intrusive linked lists for efficient membership tracking and atomic counters for outstanding operation counts. Each completion can be linked to a group using the new .link() method. This lays the groundwork for batch I/O operations and coordinated transaction handling in the storage layer.