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

replace twisted with asyncio #378

Open
fanmingyu212 opened this issue May 23, 2021 · 1 comment
Open

replace twisted with asyncio #378

fanmingyu212 opened this issue May 23, 2021 · 1 comment

Comments

@fanmingyu212
Copy link
Contributor

Current asynchronous code is handled by twisted, which functionalities can be replaced using asyncio, which is a builtin package after python 3.5. Using asyncio allows users to call other asyncio functions easily in their code with labrad, and enables some of the desired features such as simpler and clearer type annotation (#377).

@fanmingyu212
Copy link
Contributor Author

fanmingyu212 commented Sep 24, 2021

For people who need to use labrad clients and asyncio together: I have made an asyncio wrapper for async connections - See https://github.com/fanmingyu212/labrad-asyncio-interop. It works with pyqt that is based on asyncio and it works with Jupyter notebooks.

This is far from replacing twisted with asyncio in labrad, but it might solve some problem if you need to use asyncio.

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

No branches or pull requests

1 participant