载入中...
搜索中...
未找到
AsyncPreview.h
浏览该文件的文档.
38 return editing::failed<void>(editing::Status::Unsupported, editing::RuleId("editor.preview.unavailable"),
69 result.ignore("Cancelled preview has no publication consumer; the previous domain preview is retained");
139 if (result) result->ignore("Superseded or closed preview completion is intentionally not published");
EVEngine assertion entry point, backed by zeroerr.
#define EV_ASSERT(cond,...)
Assert an internal engine invariant (state that must always hold).
Definition Assert.h:37
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
UUID-backed identifier adapter for legacy textual boundaries.
Definition Identity.h:313
bool empty() const noexcept
True when no compatibility spelling has been assigned.
Definition Identity.h:377
Cooperative cancellation and progress API passed to worker code.
Definition EditingTaskService.h:34
Result< TaskId > submit(std::string name, Work work)
Queue background work and return its stable task identity.
Definition EditingTaskService.cpp:44
Result< void > discard(const TaskId &task)
Cancel and release an owned task, including already finished tasks. @ownership Caller relinquishes it...
Definition EditingTaskService.cpp:83
Typed latest-request preview publication using the existing editing task executor....
Definition AsyncPreview.h:22
PreviewState state() const noexcept
Read lifecycle state without copying the domain payload or querying any registry.
Definition AsyncPreview.h:134
AsyncPreview(const AsyncPreview &)=delete
void rejectPublication() noexcept
Record a domain validation failure after consuming a provider result; the domain keeps its previous p...
Definition AsyncPreview.h:132
AsyncPreview & operator=(const AsyncPreview &)=delete
AsyncPreview()=default
Start a private task executor; no domain state is captured.
std::optional< editing::Result< Payload > > poll()
Consume only the current request's completion, once; failed providers preserve the domain payload.
Definition AsyncPreview.h:84
editing::Result< void > cancel()
Cancel queued/running work and discard any completed but unpublished result; keeps the last domain pr...
Definition AsyncPreview.h:101
editing::Result< void > request(Work work)
Queue owning work, cancelling the previous request. Returns Pending after acceptance....
Definition AsyncPreview.h:36
void close()
Permanently close this session; cancellation is observable immediately and closure is idempotent.
Definition AsyncPreview.h:125
editing::Result< void > replaceProvider(bool available)
Invalidate all old provider work, including replacement with the same provider instance or absence.
Definition AsyncPreview.h:113
std::function< editing::Result< Payload >(const editing::TaskContext &)> Work
Definition AsyncPreview.h:24
Result< void > pending(std::vector< Diagnostic > diagnostics={})
Construct a successful void result for accepted asynchronous work.
Definition EditingResult.h:67
Definition ActionPreviewController.cpp:6
@ Pending
@ Unavailable
@ Cancelled
Type-erased result produced by a background editor task.
Definition EditingTaskService.h:49
std::vector< Diagnostic > diagnostics
Definition EditingTaskService.h:52
Owning preview lifecycle observation; payloads remain owned by the domain.
Definition PreviewState.h:10
std::uint64_t providerGeneration
Definition PreviewState.h:13