We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4a1bd6 commit d6c1f1dCopy full SHA for d6c1f1d
newsfragments/1924.bugfix.rst
@@ -0,0 +1 @@
1
+The ``TrioToken`` class can now be used as a target of a weak reference.
trio/_core/_entry_queue.py
@@ -145,7 +145,7 @@ class TrioToken(metaclass=NoPublicConstructor):
145
146
"""
147
148
- __slots__ = ("_reentry_queue",)
+ __slots__ = ("_reentry_queue", "__weakref__")
149
150
def __init__(self, reentry_queue):
151
self._reentry_queue = reentry_queue
0 commit comments