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
The with_doc_mut method of DocHandle requires having an immutable reference to the doc handle on which it is called. Internally, it takes a write lock on the document.
This makes it possible to get a deadlock by calling with_doc_mut within with_doc_mut. If we change the method to take a mutable reference such code will not compile.
The text was updated successfully, but these errors were encountered:
The
with_doc_mut
method ofDocHandle
requires having an immutable reference to the doc handle on which it is called. Internally, it takes a write lock on the document.This makes it possible to get a deadlock by calling
with_doc_mut
withinwith_doc_mut
. If we change the method to take a mutable reference such code will not compile.The text was updated successfully, but these errors were encountered: