stdin-nonblocking 0.1.0-alpha

Dependency-less non-blocking stdin reader using background threads. Supports streaming and immediate fallback defaults.
Documentation
1
2
3
4
5
6
use stdin_nonblocking::get_stdin_or_default;

fn main() {
    let input = get_stdin_or_default("backup_value");
    println!("Final input: {}", input);
}