One worker-owned provisional read transaction; destroy it on its creating worker. A successful seal qualifies all preceding pages. Until then callers must not publish them. Implementations retain bounded metadata/handles only, never destination aliases.
More...
#include <document_source.hpp>
One worker-owned provisional read transaction; destroy it on its creating worker. A successful seal qualifies all preceding pages. Until then callers must not publish them. Implementations retain bounded metadata/handles only, never destination aliases.
◆ metadata()
- Returns
- Immutable metadata captured by opening this session, without further I/O.
◆ read()
- Parameters
-
| command | Captured revision and bounded original byte offset. |
| destination | Writable bytes borrowed only for this call. |
| stop | Cooperative cancellation. |
- Returns
- Provisional initialized bytes/EOF, or an exact typed failure.
◆ seal()
| virtual std::expected< void, DocumentError > portals::ByteDocumentReadSession::seal |
( |
std::stop_token | stop | ) |
|
|
pure virtual |
- Parameters
-
| stop | Cooperative cancellation of final path/revision validation. |
- Returns
- Success qualifying preceding reads, or failure that forbids publishing them.
The documentation for this class was generated from the following file: