An interruptible stream can query an `AtomicBool. If that bool is true, the stream will no longer produce any values. Also introducing the `Interruptible` trait, which extends any `Stream` with the `interruptible` function, to simplify the construction and allow chaining.
8 lines
106 B
Rust
8 lines
106 B
Rust
mod input;
|
|
mod interruptible;
|
|
mod output;
|
|
|
|
pub use input::*;
|
|
pub use interruptible::*;
|
|
pub use output::*;
|