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-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2020-01-28 21:58:11 -08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-05-08 10:19:15 +08:00
2019-01-28 11:24:48 +08:00
2019-10-31 09:10:05 +08:00
2019-01-28 11:24:48 +08:00
2020-01-28 21:58:11 -08:00
2019-01-28 11:24:48 +08:00
2019-05-08 10:19:15 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-02-27 11:14:21 +08:00
2020-01-28 21:58:11 -08:00
2020-01-28 21:58:11 -08:00
2019-10-31 09:10:05 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-10-09 15:16:22 +08:00
2019-10-30 17:10:02 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-10-30 17:10:02 +08:00
2019-10-30 17:10:02 +08:00
2019-10-30 17:10:02 +08:00
2019-03-20 15:31:28 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2019-02-27 11:14:21 +08:00
2019-02-27 11:14:21 +08:00
2019-02-27 11:14:21 +08:00
2019-02-22 20:44:27 +08:00
2020-01-28 21:58:11 -08:00
2019-10-09 15:16:22 +08:00
2019-01-28 11:24:48 +08:00
2020-01-28 21:58:11 -08:00
2019-01-28 11:24:48 +08:00
2019-01-28 11:24:48 +08:00
2020-01-28 21:58:11 -08:00