docs: add async database operations guide#360
Merged
kcenon merged 1 commit intoFeb 8, 2026
Conversation
Add comprehensive documentation for the async operations module covering async_executor, async_result, async_database, coroutine support, stream processing, distributed transactions (2PC + Saga), and thread_system integration. Update API_REFERENCE.md with expanded async operations section and cross-references.
6 tasks
kcenon
added a commit
that referenced
this pull request
Apr 13, 2026
Add comprehensive documentation for the async operations module covering async_executor, async_result, async_database, coroutine support, stream processing, distributed transactions (2PC + Saga), and thread_system integration. Update API_REFERENCE.md with expanded async operations section and cross-references.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/guides/ASYNC_OPERATIONS.md(~1000 lines) covering the async database operations moduledocs/API_REFERENCE.mdwith expanded Async Operations section and cross-referencesWhat's Documented
Async Execution Model
thread_pool_adapter.hasync_executor
SubmittableTaskconceptshutdown(),wait_for_completion(),pending_tasks()async_result<T>
get(),get_for(timeout)is_ready(),wait_for(timeout)then()/on_error()with C++20 concept constraintsmake_ready_result(),make_error_result()async_database
execute_async(),select_async()execute_batch_async(),select_batch_async()C++20 Coroutine Support
database_awaitable<T>with promise_type, await_ready/suspend/resumeexecute_coro(),select_coro()when_all(),when_any()Stream Processing
stream_processorwith 4 stream types (PostgreSQL NOTIFY, MongoDB Change Streams, Redis Pub/Sub, custom)stream_eventstructureStreamEventHandler/StreamEventFilterconceptsDistributed Transactions
transaction_coordinatorwith transaction state machineprepare_phase(),commit_phase()saga_builderwith forward actions and compensationsCross-Cutting Concerns
Examples
Test Plan
Verification Results
Closes #356