-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
async support #691
Comments
eel uses greenlets which was a python library for coroutines before asyncio was introduced. so using greenlet coroutines instead of asyncio coroutines is probably the cleanest approach. But if you're dependent on an already existing async library, you can spawn eel into a greenlet (by passing
The alternative is to run your async functions in a separate thread (I find this cleaner) and then let eel run its greenlets in the main thread.
for either method, if you need any also, it is good practice to clean up your coroutines before exiting the app/thread, so in the |
can you add async support to it ?
I tried to use async-eel module but it didn't work .
The text was updated successfully, but these errors were encountered: