Closed joshuahaertel closed 3 years ago
@joshuahaertel thanks for your question.
I'll try fix this in the next release.
@joshuahaertel,
The project documentation was updated to exemplifying a little better the use of lib with asyncio.
Thank you for your comment and in case there is any doubt reopen this issue.
I suggest removing references about asyncio until the client is actually asyncio compliant.
If it were asyncio compliant, the example code would include the
await
keyword, like so:The clarification is important, as applications which regularly call
get_config
, expecting it to be async, will block their event loop while the request occurs. Callingget_config
once on application startup is fine for async applications, as is done in the aiohttp extension, because the actual async part of the application isn't running yet. However, the fact that the application is async is irrelevant in that case.