Explicitly frees the resources associated with an Automerge document.
After calling this function, the document becomes invalid and should
not be used.
Usage
am_close(doc)
Value
NULL (invisibly)
Arguments
doc
An Automerge document (created with am_create() or am_load())
Details
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.