跳到主要内容

DevToolsSnapshotLockResult<TValue>

type DevToolsSnapshotLockResult<TValue> =
| {
outcome: "held";
value: TValue;
}
| {
outcome: "lost";
}
| {
outcome: "aborted";
};

Defined in: native/native-snapshot-source.ts:43

一次锁内任务的结果。

Type Parameters​

Type Parameter
TValue