-
Notifications
You must be signed in to change notification settings - Fork 633
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
thread 'main' panicked at 'cannot execute LocalPool
executor from within another executor: EnterError'
#2386
Comments
Can you |
@seanmonstar if I have an option to await so why I will use block_on ? |
Not easily at all. The panic is there to catch you from a very likely deadlock. That's because if the second block_on isn't ready immediately, it block (put the thread to sleep) until it's ready, but since the thread is asleep, the local pool will never be able to poll again and wake it up. |
thank you for help. |
This page in the Tokio tutorial goes into details about |
when I use block_on ,I get this panic and after investigate I found that is because of recursive block_on , so is there is an workaround for that ?
Thank you for advance.
The text was updated successfully, but these errors were encountered: