You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was reviewing #4130 for information on how to build a Tokio-based event loop that can run asynchronously and came to the conclusion that this is an area for improvement that would make the library great for light scripting tasks in my project, similar to Rhai (which doesn't do promises/futures like I want).
Is my understanding correct that utilizing tokio's timer wheel, or an even more sophisticated implementation like libuv employs, would make for an energy-efficient executor that can run virtually idle? My thinking was to start by adding a simple "tick" of 100ms or so granularity to ensure the timeout_jobs are eventually fulfilled, but this would be very crude.
Do you foresee advanced executors being external crates in the future, like a boa-tokio crate?
Just wanted to kick off a discussion and hear about design goals, future directions, etc.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was reviewing #4130 for information on how to build a Tokio-based event loop that can run asynchronously and came to the conclusion that this is an area for improvement that would make the library great for light scripting tasks in my project, similar to Rhai (which doesn't do promises/futures like I want).
Is my understanding correct that utilizing tokio's timer wheel, or an even more sophisticated implementation like libuv employs, would make for an energy-efficient executor that can run virtually idle? My thinking was to start by adding a simple "tick" of 100ms or so granularity to ensure the timeout_jobs are eventually fulfilled, but this would be very crude.
Do you foresee advanced executors being external crates in the future, like a boa-tokio crate?
Just wanted to kick off a discussion and hear about design goals, future directions, etc.
Beta Was this translation helpful? Give feedback.
All reactions