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 3d2a604 commit ebea928Copy full SHA for ebea928
trio/_core/_thread_cache.py
@@ -57,6 +57,8 @@ def __init__(self, thread_cache):
57
thread.start()
58
59
def _handle_job(self):
60
+ # Handle job in a separate method to ensure user-created
61
+ # objects are cleaned up in a consistent manner.
62
fn, deliver = self._job
63
self._job = None
64
result = outcome.capture(fn)
0 commit comments