mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-20 00:00:08 +02:00
time: interval Stream impl requires stream feature (#2695)
Fixes: #1878
This commit is contained in:
@@ -107,6 +107,11 @@ pub fn interval_at(start: Instant, period: Duration) -> Interval {
|
||||
}
|
||||
|
||||
/// Stream returned by [`interval`](interval) and [`interval_at`](interval_at).
|
||||
///
|
||||
/// This type only implements the [`Stream`] trait if the "stream" feature is
|
||||
/// enabled.
|
||||
///
|
||||
/// [`Stream`]: trait@crate::stream::Stream
|
||||
#[derive(Debug)]
|
||||
pub struct Interval {
|
||||
/// Future that completes the next time the `Interval` yields a value.
|
||||
|
||||
Reference in New Issue
Block a user