Enable parking strategies #7349
Unanswered
Abso1ut3Zer0
asked this question in
Ideas
Replies: 1 comment
-
As far as I know, there is no such option. There seems to be an issue that might be referring to the same thing, though. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! Has there been any discussion around enabling a parking strategy to the tokio runtime builder? I think the current strategy to park the thread is a great default, but there are scenarios where a user may want to trade off CPU usage for efficiency.
I'm thinking maybe there could be an optional timeout where the executor could busy spin checking for io for a certain time. Once the timeout expires, it would simply park the thread as normal.
I have a use case where I actually need to busy wait at all times, so a feature like this would be very helpful.
Beta Was this translation helpful? Give feedback.
All reactions