From 1e437595a3a0d2d543aa369f1cb271f2e651b8ad Mon Sep 17 00:00:00 2001 From: afajl
Date: Fri, 14 Oct 2022 21:45:16 +0000 Subject: [PATCH] stream: document that `throttle` operates on ms granularity (#5101) --- tokio-stream/src/stream_ext.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tokio-stream/src/stream_ext.rs b/tokio-stream/src/stream_ext.rs index 6cea7b55d..52d32024f 100644 --- a/tokio-stream/src/stream_ext.rs +++ b/tokio-stream/src/stream_ext.rs @@ -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.