| am_close | R Documentation |
Explicitly frees the resources associated with an Automerge document. After calling this function, the document becomes invalid and should not be used.
am_close(doc)
doc |
An Automerge document (created with |
This function is useful when you need deterministic cleanup rather than waiting for garbage collection. It is safe to call on a document that has already been closed.
NULL (invisibly)
doc <- am_create()
am_put(doc, AM_ROOT, "key", "value")
# Explicitly free resources
am_close(doc)
# Document is now invalid - do not use after closing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.