mirror of
https://github.com/morluto/rea.git
synced 2026-10-31 03:45:39 +00:00
docs(process): preserve capture invariants
This commit is contained in:
1 parent
ba15d16c58
commit
841990bde1
33 files changed
+214
-128
No files matched your search
@@ -96,6 +96,9 @@ export class ProcessCheckpoints {
|
||||
capture(name: string): void {
|
||||
if (this.#captured.has(name)) return;
|
||||
this.#captured.add(name);
|
||||
// Serialize scans even when time, terminal, and lifecycle triggers fire
|
||||
// together. Each effect set is intentionally relative to the immediately
|
||||
// preceding checkpoint, which preserves transient create/delete behavior.
|
||||
this.#pending = this.#pending.then(async () => {
|
||||
const snapshot = await snapshotRoots(this.scenario, this.signal);
|
||||
const previous = this.#captures.at(-1)?.files ?? [];
|
||||
|
||||
Reference in new issue
Block a user