https://github.com/polachok/tokio-timerfd
Timerfd for Tokio
https://github.com/polachok/tokio-timerfd
rust timerfd tokio
Last synced: 12 months ago
JSON representation
Timerfd for Tokio
- Host: GitHub
- URL: https://github.com/polachok/tokio-timerfd
- Owner: polachok
- Created: 2019-02-28T16:11:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-04T17:15:29.000Z (over 3 years ago)
- Last Synced: 2024-08-09T23:05:04.824Z (almost 2 years ago)
- Topics: rust, timerfd, tokio
- Language: Rust
- Homepage:
- Size: 32.2 KB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
tokio-timerfd
=============
Linux [timerfd](http://man7.org/linux/man-pages/man2/timerfd_create.2.html) for Tokio.
This crates provides [tokio-timer](https://docs.rs/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.