Skip to content

[BUG] Why is the python asyncio generator is generating a client with a threadpool #15824

@Jay-Madden

Description

@Jay-Madden

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions