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
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
left: `ThreadId(1)`,
right: `ThreadId(4)`: y_py::y_doc::YDoc is unsendable, but sent to another thread!', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.16.6/src/impl_/pyclass.rs:853:9
---------------------------------------------------------------------------
PanicException Traceback (most recent call last)
Cell In[15], line 11
9 thread.join()
10 doc = q.get()
---> 11 doc.get_array('foo')
PanicException: assertion failed: `(left == right)`
left: `ThreadId(1)`,
right: `ThreadId(4)`: y_py::y_doc::YDoc is unsendable, but sent to another thread!
The text was updated successfully, but these errors were encountered:
Currently objects in ypy do not implement the Send trait. This is because some of the internals of the yrsDoc type (for the version we use) do not implement Send. In short, you cannot access or pass ypy types between threads. To get around this, you could pass messages between threads using a channel or queue and then integrate those messages into the doc on each thread.
Hi, I'm having an issue while accessing a
YDoc
created from another thread. This is the reproduction code and the error message.The text was updated successfully, but these errors were encountered: