nushell/crates/nu-cli/src/stream/mod.rs
Jason Gedge 2a54ee0c54 Introduce InterruptibleStream type.
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.
2020-03-29 17:03:01 -04:00

8 lines
106 B
Rust

mod input;
mod interruptible;
mod output;
pub use input::*;
pub use interruptible::*;
pub use output::*;