Crates.io | tokio-timerfd |
lib.rs | tokio-timerfd |
version | 0.2.0 |
source | src |
created_at | 2019-03-26 20:12:38.275158 |
updated_at | 2022-01-14 16:01:50.235468 |
description | timerfd support for tokio |
homepage | https://github.com/polachok/tokio-timerfd |
repository | https://github.com/polachok/tokio-timerfd |
max_upload_size | |
id | 124036 |
size | 17,743 |
Linux timerfd for Tokio.
This crates provides tokio-timer-like API
on top of timerfd. timerfd
is a Linux-specific API providing timer notifications as
file descriptor read events.
The advantage of timerfd
is that it has more granularity than epoll_wait(),
which only provides 1 millisecond timeouts. timerfd
API allows for nanosecond
precision, but precise timing of the wakeup is not guaranteed on a normal
multitasking system.