Skip to content

Conversation

@stepansergeevitch
Copy link
Contributor

We need to migrate from using asyncio as async backend to trio.
It seems like asyncio has a bug, which causes tcp transport to raise "Event loop closed" error on close in some cases.
Trio, on the other hand, seems not to have this issue

Copy link
Contributor

@ptiurin ptiurin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as migration goes, this seems to be pretty seamless so lgtm.
However, I'm wary about moving to a different async library. Asyncio is an industry standard with many usecases tested daily, while trio looks like a fairly recent one. We'll be losing a lot in terms of support - asyncio has 5000+ questions on Stack Overflow, while trio has 59.
Is "Event loop closed" error a known issue in asyncio? If not, can we create a reproducer and raise an issue on their repo to see what the maintainers say?

+ (HttpxAsyncClient.__doc__ or "")
"""

@async_cached_property
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason account_id is no longer a property?

@stepansergeevitch
Copy link
Contributor Author

Closing since I've figured out a much more elegant solution, which allows us to still use asyncio.
#89

@ericf-firebolt ericf-firebolt deleted the asyncio_to_trio branch July 21, 2022 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants