AsyncIO introduces async/await keywords. In order to plumb through the asynchronous-ness of functions, the library has to expose async functions on its surface. So, while integrating gRPC AsyncIO, we might need to instrument following classes in order to make gRPC AsyncIO work.
Also, since python-api-core supports all Python versions, we can't use any async/await in existing modules. If needed, the import of new AsyncIO modules will be protected by explicit version check.
A all-in-one draft PR can be found: #22.
Unit tests included for all new modules under tests/asyncio.
For each module, I will create separate issues and PRs later.
AsyncIO introduces
async/awaitkeywords. In order to plumb through the asynchronous-ness of functions, the library has to exposeasyncfunctions on its surface. So, while integrating gRPC AsyncIO, we might need to instrument following classes in order to make gRPC AsyncIO work.Also, since
python-api-coresupports all Python versions, we can't use anyasync/awaitin existing modules. If needed, the import of new AsyncIO modules will be protected by explicit version check.A all-in-one draft PR can be found: #22.
Unit tests included for all new modules under tests/asyncio.
For each module, I will create separate issues and PRs later.