|
|
@ -2,10 +2,10 @@ use std::pin::Pin;
|
|
|
|
use std::task::{Context, Poll};
|
|
|
|
use std::task::{Context, Poll};
|
|
|
|
use std::time::{Duration, Instant};
|
|
|
|
use std::time::{Duration, Instant};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use crate::future::Future;
|
|
|
|
|
|
|
|
use crate::stream::Stream;
|
|
|
|
use futures_timer::Delay;
|
|
|
|
use futures_timer::Delay;
|
|
|
|
|
|
|
|
|
|
|
|
use crate::prelude::*;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Creates a new stream that yields at a set interval.
|
|
|
|
/// Creates a new stream that yields at a set interval.
|
|
|
|
///
|
|
|
|
///
|
|
|
|
/// The stream first yields after `dur`, and continues to yield every
|
|
|
|
/// The stream first yields after `dur`, and continues to yield every
|
|
|
|