-
here the code I used task pool. But not solve the problem. |
Beta Was this translation helpful? Give feedback.
Answered by
Pieresqi
Jun 30, 2023
Replies: 1 comment 2 replies
-
Hi, looking at your code I think it's caused by this line: That line causes your function to block so it stalls rest of app. You need to wrap that ele variable in poll_once function, then on it you can do block_on. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So it would look like this:
futures_lite::future::block_on(futures_lite::future::poll_once(ele))