doc1 <- am_create()
doc2 <- am_fork(doc1)
doc2
# Fork has a different actor ID
am_get_actor_hex(doc1) != am_get_actor_hex(doc2) # TRUE
# Now doc1 and doc2 can diverge independently
am_close(doc1)
am_close(doc2)
Run the code above in your browser using DataLab