This crate provides a Stream that yields numeric values at a specifed interval and that increments at a specifed rate.
This crate was born out of the desire for a simple configurable stream that would yield ever changing, yet predictable values.
The num_stream method can be used to acquire an instance of a NumStream struct which implements a Futures 0.3 Stream.
```rust use futures::stream::StreamExt; use numstream::numstream; use std::time::Duration; use tokio;
async fn main() { let mut nums = numstream(0, 3, Duration::frommillis(500)); loop { println!("Got: {:?}", nums.next().await); } } ```
Licensed under Apache License, Version 2.0