Fabian von Feilitzsch
15345e1620
[python] Cleanup ThreadPool with atexit rather than __del__ ( #5094 )
...
* [python] Cleanup ThreadPool with atexit rather than __del__
This removes the `__del__` function from the generated Python client,
and replaces it with a `cleanup` function. When a ThreadPool is created,
the cleanup function is registered with the `atexit` module.
This fixes #5093 , where the API client could hang indefinitely at
garbage collection.
* Update petstore examples
* Test to ensure threadpool is cleaned up
* Docs now encourage using the context manager
* Regenerate docs
* Update samples
2020-01-28 21:58:11 -08:00
..
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2020-01-28 21:58:11 -08:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2020-01-28 21:58:11 -08:00
2020-01-28 21:58:11 -08:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2020-01-28 21:58:11 -08:00
2020-01-10 17:43:35 +08:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2020-01-28 21:58:11 -08:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2019-12-14 21:18:41 -05:00
2020-01-28 21:58:11 -08:00
2019-12-14 21:18:41 -05:00