stream: document that throttle operates on ms granularity (#5101)

This commit is contained in:
afajl
2022-10-14 23:45:16 +02:00
committed by GitHub
parent bf5eed8fa0
commit 1e437595a3
+2
View File
@@ -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.