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 2d41f84 commit 77f7f3bCopy full SHA for 77f7f3b
CHANGELOG.md
@@ -4,6 +4,7 @@
4
5
#### Enhancements
6
- Added type alias `TBBOMsg` for `MBP1Msg`
7
+- Instances of the `Live` client will now call `Live.stop` when garbage collected
8
9
## 0.36.0 - 2024-06-11
10
databento/live/client.py
@@ -121,6 +121,12 @@ def factory() -> _SessionProtocol:
121
if not Live._thread.is_alive():
122
Live._thread.start()
123
124
+ def __del__(self) -> None:
125
+ try:
126
+ self.stop()
127
+ except ValueError:
128
+ pass
129
+
130
def __aiter__(self) -> LiveIterator:
131
return iter(self)
132
0 commit comments