util: implement stream debounce combinator (#747)

This commit is contained in:
Moritz Gunz
2019-01-05 11:08:12 -05:00
committed by Toby Lawrence
parent a687922746
commit 7a49ebb65e
4 changed files with 647 additions and 1 deletions
+5
View File
@@ -5,6 +5,9 @@
//!
//! This crate provides a number of utilities for working with periods of time:
//!
//! * [`Debounce`]: Wraps a stream, throwing items away until there has been at
//! least some amount of time without items having passed through.
//!
//! * [`Delay`]: A future that completes at a specified instant in time.
//!
//! * [`Interval`] A stream that yields at fixed time intervals.
@@ -24,6 +27,7 @@
//!
//! [`Delay`]: struct.Delay.html
//! [`Throttle`]: throttle/struct.Throttle.html
//! [`Debounce`]: debounce/struct.Debounce.html
//! [`Timeout`]: struct.Timeout.html
//! [`Interval`]: struct.Interval.html
//! [`Timer`]: timer/struct.Timer.html
@@ -36,6 +40,7 @@ extern crate futures;
extern crate slab;
pub mod clock;
pub mod debounce;
pub mod delay_queue;
pub mod throttle;
pub mod timeout;