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