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
Just a small problem.
The resolution of tokio-timer is too low. The smallest duration is 1 millisecond.
When batching syscall, we need to use a higher resolution timer.
futures-timer fits the needs but it requires changing the type of the Error returned.
Maybe you can consider moving from tokio-timer to futures-timer.
The text was updated successfully, but these errors were encountered:
doyoubi
changed the title
tokio-timer only supports 1 millisecond resolution
tokio-timer only supports low resolution timer
Oct 23, 2019
Oh that's an interesting use-case for sure.
If there aren't any downsides, we could make the switch.
Since we are still in 0.x territory (non-stable) it's fine if we change the error type.
Would you mind creating a pull request for that if you find the time? 😊
This feature has landed now thanks to @doyoubi. Hurray! 🎉
I've cut a new release and updated the docs to reflect our support for high-resolution timers now.
Hi,
Great lib for batching!!
Just a small problem.
The resolution of
tokio-timer
is too low. The smallest duration is 1 millisecond.When batching syscall, we need to use a higher resolution timer.
futures-timer
fits the needs but it requires changing the type of the Error returned.Maybe you can consider moving from
tokio-timer
tofutures-timer
.The text was updated successfully, but these errors were encountered: