Object is unsendable, but is being dropped on another thread #5068
Unanswered
davidbrochart
asked this question in
Questions
Replies: 2 comments 3 replies
-
Oh maybe I didn't get it right: when the object is being garbage collected from a different thread, it will actually not be, and then it will be garbage collected later in its home thread? |
Beta Was this translation helpful? Give feedback.
0 replies
-
The check you see comes from the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After reading #3688 and #3689, I'm still not sure what to do with an
unsendable
pyclass. When it is garbage collected from a different thread than the thread it was created in, I get theRuntimeError: ... unsendable, but is being dropped on another thread
.Does it mean that my object is not dropped, and that it would lead to memory leaks?
Beta Was this translation helpful? Give feedback.
All reactions