Skip to content

Commit

Permalink
stream: document that throttle operates on ms granularity (#5101)
Browse files Browse the repository at this point in the history
  • Loading branch information
afajl committed Oct 14, 2022
1 parent bf5eed8 commit 1e43759
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tokio-stream/src/stream_ext.rs
Expand Up @@ -982,6 +982,8 @@ pub trait StreamExt: Stream {

/// Slows down a stream by enforcing a delay between items.
///
/// The underlying timer behind this utility has a granularity of one millisecond.
///
/// # Example
///
/// Create a throttled stream.
Expand Down

0 comments on commit 1e43759

Please sign in to comment.