DevToolsSnapshotCaptureResult
type DevToolsSnapshotCaptureResult =
| {
outcome: "captured";
records: readonly DevToolsSnapshotRecord[];
}
| {
outcome: "invalidated";
};
Defined in: provider/types.ts:56
一次快照物化的结果。
Remarks
invalidated 表示物化期间丢失了锁归属或 capture epoch 变了。调用方必须从头重来
并换一个新的 snapshotId,绝不能把两次的记录拼起来。