mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
stream: document that throttle operates on ms granularity (#5101)
This commit is contained in:
@@ -982,6 +982,8 @@ pub trait StreamExt: Stream {
|
|||||||
|
|
||||||
/// Slows down a stream by enforcing a delay between items.
|
/// Slows down a stream by enforcing a delay between items.
|
||||||
///
|
///
|
||||||
|
/// The underlying timer behind this utility has a granularity of one millisecond.
|
||||||
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// Create a throttled stream.
|
/// Create a throttled stream.
|
||||||
|
|||||||
Reference in New Issue
Block a user