/// Waits for user to press Enter and then sends the signal using sender
Waits for user to press Enter and then sends the signal using sender
Waits for user to press Enter and then sends the signal using sender
pub(crate) fn input_waiter(sender: Sender<()>) {
    let mut line = String::new();
    io::stdin().lock().read_line(&mut line).unwrap();
    sender.send(()).unwrap();
}
pub ( crate ) fn input_waiter ( sender : Sender < ( ) > ) { let mut line = String :: new ( ) ; io :: stdin ( ) . lock ( ) . read_line ( & mut line ) . unwrap ( ) ; sender . send ( ( ) ) . unwrap ( ) ; }
Waits for user to press Enter and then sends the signal using sender
Waits for user to press Enter and then sends the signal using sender
sender
Sender<()>