polachok / tokio-timerfd

Timerfd for Tokio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tokio-timerfd

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.

About

Timerfd for Tokio


Languages

Language:Rust 100.0%