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-03-20 15:31:28 +08:00
2019-03-20 15:31:28 +08:00
2019-03-20 15:31:28 +08:00
2019-03-20 15:31:28 +08:00
2019-03-20 15:31:28 +08:00
2019-03-20 15:31:28 +08:00
2019-03-20 15:31:28 +08:00
2019-03-20 15:31:28 +08:00
2017-09-19 01:25:33 +08:00
2020-01-28 21:58:11 -08:00
2017-09-19 01:25:33 +08:00
2017-09-19 01:25:33 +08:00
2017-09-19 01:25:33 +08:00
2017-09-19 01:25:33 +08:00
2019-12-27 15:42:32 +08:00
2019-12-27 15:42:32 +08:00
2017-09-19 01:25:33 +08:00
2017-09-19 01:25:33 +08:00
2019-05-08 10:19:15 +08:00
2018-10-24 21:02:23 +08:00
2019-10-31 09:10:05 +08:00
2017-09-19 01:25:33 +08:00
2017-09-19 01:25:33 +08:00
2019-05-08 10:19:15 +08:00
2017-09-19 01:25:33 +08:00
2017-09-19 01:25:33 +08:00
2018-04-21 11:54:40 +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
2018-07-08 15:29:55 +08:00
2019-09-30 15:22:44 +08:00
2019-10-09 15:16:22 +08:00
2017-09-19 01:25:33 +08:00
2018-09-29 17:01:13 +08:00
2017-09-19 01:25:33 +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
2017-09-19 01:25:33 +08:00
2017-09-19 01:25:33 +08:00
2018-05-08 01:23:49 +08:00
2017-09-19 01:25:33 +08:00
2019-02-24 11:50:59 +08:00
2020-01-28 21:58:11 -08:00
2019-10-09 15:16:22 +08:00
2017-09-19 01:25:33 +08:00
2020-01-28 21:58:11 -08:00
2017-09-19 01:25:33 +08:00
2019-01-26 17:26:38 +08:00
2019-09-07 12:36:19 +08:00
2017-09-19 01:25:33 +08:00
2020-01-28 21:58:11 -08:00
2019-02-25 16:44:38 +08:00