You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LoroEx.fork/1 — return an independent clone of a document.
The clone observes the parent's full op history at the moment of
the call but lives in a separate Rust resource; mutations and
exports on the fork do not affect the parent, and vice versa. Loro
assigns the clone a new random peer id. O(n) in op-log size but
considerably cheaper than export_snapshot/1 because no
serialization to bytes happens. Primary use case: move an
expensive export_snapshot/1 or export_shallow_snapshot/2 call
off a doc-owning GenServer's mailbox by forking synchronously
(fast) and exporting the fork inside a Task.