Bug Report Checklist
The python asyncio generator applies a task to a threadpool thread instead of just passing the aiohttp task back via await. Why is this the default behavior? Wouldn't it make more sense to just await the task all the way through?
|
return self.pool.apply_async(self.__call_api, (resource_path, |
openapi-generator version
7.0.0-SNAPSHOT
Generation Details
143986 [INFO] --- spring-boot-maven-plugin:2.5.14:repackage (default) @ openapi-generator-online ---
144945 [INFO] Replacing main artifact with repackaged archive
144946 [INFO] ------------------------------------------------------------------------
144947 [INFO] Reactor Summary for openapi-generator-project 7.0.0-SNAPSHOT:
144947 [INFO]
144947 [INFO] openapi-generator-project .......................... SUCCESS [ 2.517 s]
144947 [INFO] openapi-generator-core ............................. SUCCESS [ 4.217 s]
144947 [INFO] openapi-generator (core library) ................... SUCCESS [ 52.042 s]
144947 [INFO] openapi-generator (executable) ..................... SUCCESS [ 7.751 s]
144947 [INFO] openapi-generator (maven-plugin) ................... SUCCESS [ 7.155 s]
144947 [INFO] openapi-generator-gradle-plugin (maven wrapper) .... SUCCESS [01:05 min]
144947 [INFO] openapi-generator-online ........................... SUCCESS [ 3.870 s]
144947 [INFO] ------------------------------------------------------------------------
144947 [INFO] BUILD SUCCESS
144947 [INFO] ------------------------------------------------------------------------
144947 [INFO] Total time: 02:23 min
144947 [INFO] Finished at: 2023-06-12T19:50:42Z
Steps to reproduce
Related issues/PRs
Suggest a fix
Bug Report Checklist
The python asyncio generator applies a task to a threadpool thread instead of just passing the aiohttp task back via await. Why is this the default behavior? Wouldn't it make more sense to just await the task all the way through?
openapi-generator/modules/openapi-generator/src/main/resources/python/api_client.mustache
Line 433 in 8905698
openapi-generator version
7.0.0-SNAPSHOT
Generation Details
143986 [INFO] --- spring-boot-maven-plugin:2.5.14:repackage (default) @ openapi-generator-online ---
144945 [INFO] Replacing main artifact with repackaged archive
144946 [INFO] ------------------------------------------------------------------------
144947 [INFO] Reactor Summary for openapi-generator-project 7.0.0-SNAPSHOT:
144947 [INFO]
144947 [INFO] openapi-generator-project .......................... SUCCESS [ 2.517 s]
144947 [INFO] openapi-generator-core ............................. SUCCESS [ 4.217 s]
144947 [INFO] openapi-generator (core library) ................... SUCCESS [ 52.042 s]
144947 [INFO] openapi-generator (executable) ..................... SUCCESS [ 7.751 s]
144947 [INFO] openapi-generator (maven-plugin) ................... SUCCESS [ 7.155 s]
144947 [INFO] openapi-generator-gradle-plugin (maven wrapper) .... SUCCESS [01:05 min]
144947 [INFO] openapi-generator-online ........................... SUCCESS [ 3.870 s]
144947 [INFO] ------------------------------------------------------------------------
144947 [INFO] BUILD SUCCESS
144947 [INFO] ------------------------------------------------------------------------
144947 [INFO] Total time: 02:23 min
144947 [INFO] Finished at: 2023-06-12T19:50:42Z
Steps to reproduce
Related issues/PRs
Suggest a fix