Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove nest_asyncio dependency #682

Closed
douglas-raillard-arm opened this issue Apr 25, 2024 · 1 comment · Fixed by #683
Closed

Remove nest_asyncio dependency #682

douglas-raillard-arm opened this issue Apr 25, 2024 · 1 comment · Fixed by #683

Comments

@douglas-raillard-arm
Copy link
Collaborator

The author of nest_asyncio has passed away and the project is now abandoned: https://github.com/erdewit/nest_asyncio

Unfortunately, nest_asyncio in its current state does not support alternative event loops like uvloop, used by a number of project, e.g. the gunicorn WSGI server. According to this issue, the Python stdlib still does not have any plan on supporting nested event loop, but someone seems to have found a way to run an async function in synchronous world without an event loop at all: https://stackoverflow.com/questions/78170266/python-decorator-for-async-and-sync-function-without-code-duplication/78170267#78170267

I'll have a look tomorrow at that option and try to make a PR to remove the dependency

@douglas-raillard-arm
Copy link
Collaborator Author

Another possible avenue is: https://github.com/oremanj/greenback

douglas-raillard-arm added a commit to douglas-raillard-arm/devlib that referenced this issue Apr 26, 2024
douglas-raillard-arm added a commit to douglas-raillard-arm/devlib that referenced this issue Apr 26, 2024
douglas-raillard-arm added a commit to douglas-raillard-arm/devlib that referenced this issue May 9, 2024
douglas-raillard-arm added a commit to douglas-raillard-arm/devlib that referenced this issue May 14, 2024
douglas-raillard-arm added a commit to douglas-raillard-arm/devlib that referenced this issue May 22, 2024
douglas-raillard-arm added a commit to douglas-raillard-arm/devlib that referenced this issue Jun 18, 2024
douglas-raillard-arm added a commit to douglas-raillard-arm/devlib that referenced this issue Jun 18, 2024
douglas-raillard-arm added a commit to douglas-raillard-arm/devlib that referenced this issue Jun 21, 2024
douglas-raillard-arm added a commit to douglas-raillard-arm/devlib that referenced this issue Jun 27, 2024
douglas-raillard-arm added a commit to douglas-raillard-arm/devlib that referenced this issue Jul 1, 2024
douglas-raillard-arm added a commit to douglas-raillard-arm/devlib that referenced this issue Jul 12, 2024
douglas-raillard-arm added a commit to douglas-raillard-arm/devlib that referenced this issue Jul 16, 2024
douglas-raillard-arm added a commit to douglas-raillard-arm/devlib that referenced this issue Jul 31, 2024
douglas-raillard-arm added a commit to douglas-raillard-arm/devlib that referenced this issue Jul 31, 2024
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 a pull request may close this issue.

1 participant