let go of the library without saving
each new version, as the library moves past the one before, starting
after since, the current version by default; ends when signal aborts
or the library is let go of
Optionalsignal: AbortSignalthe changes after version, or undefined if the library no longer
remembers it or it is another library's; read
entries again then
the item files whose local edits were not sent, kept to read and discard
when a fetch last finished, if one has
delete blobs in the store that no listed item, queued edit or open page refers to
the top level of the library
the last roots replaced by writes that purged something, oldest first
save what changed since the last save to the platform's state store
empty the store, the cache and the saved state, and drop the library with
its queued edits, ending each changes() loop first; a
LibraryInUseError while an open page holds it or another call on it runs
The client forgets its session and device token, so every later call
through it, a file read through it or a batch fails unsent with an
UnauthorizedError, though a push with no edits still succeeds, and an
open Notifications of it ends with that error.
what the library's syncs are doing now
the items under neither the root nor the trash
fetch the account, merge the queued edits with it and send them in one write
sync until every edit made before the call is in the account, or
timeoutMs pass, which throws a TimedOutError; Infinity waits without
a limit
every tag name on a document, folder or page outside the trash
what template draws on a page of size: a paper of the tablet's as
rmapi's version of it, and a template item as its definition with the
edits not yet sent
the trash
the number of local edits waiting to be sent
the library's current version
StaticeraseStaticloadrebuild the library client's platform saved, sharing the client, which
keeps working on its own
every item of an account, kept where the platform's stores keep it, so it reads and edits offline and sends the edits on a sync
loadshares a client with the library. Its items are handed out as Document, Folder and LibraryTemplate handles, fromroot,documentand the like; an edit applies at once and is queued, and asyncmerges the queue with the account and sends it. Save withsave; the next load rebuilds the library from it.Example