Expand description
One serialized save pipeline for autosave, explicit actions and revision restoration. Explicit actions report through toasts; plain saves only update the header status.
异步续写全部走 try_*:离开笔记(编辑器卸载)后迟到的响应不会写入任何状态,也不弹提示。
Functions§
- closed 🔒
- 编辑器已卸载:流水线中途放弃,结果由
finish丢弃。 - finish 🔒
- persist 🔒
- False also means busy/uploading: callers must not continue to preview or restore.
- restore_
revision 🔒 - save_
snapshot 🔒 - use_
autosave 🔒 - 工作稿停止输入后自动保存。每次状态变化都会让之前排队的保存失效(世代号), 已经发出的请求不受影响。