Skip to content

sirpent-team/tokio-timer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

tokio-timer

Timer facilities for Tokio

Build Status Crates.io

Documentation | Gitter

Usage

First, add this to your Cargo.toml:

[dependencies]
tokio-timer = { git = "https://github.com/tokio-rs/tokio-timer" }

Next, add this to your crate:

extern crate tokio_timer;

What is tokio-timer?

This crate provides timer facilities for usage with Tokio. Currently, the only timer implementation is a hashed timing wheel, but will provide a binary heap based timer at some point.

A timer provides the ability to set a timeout, represented as a future. When the timeout is reached, the future completes. This can be implemented very efficiently and avoiding runtime allocations.

Hashed Timing Wheel

Inspired by the paper by Varghese and Lauck, the hashed timing wheel is a great choice for the usage pattern commonly found when writing network applications.

License

tokio-timer is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, and LICENSE-MIT for details.

The MPMC queue implementation is inspired from 1024cores, see LICENSE-MPMC for details.

About

Timer facilities for Tokio

Resources

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Unknown
LICENSE-MPMC

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%