Skip to main content

read_input

Function read_input 

Source
fn read_input(
    queue: Sender<(String, Instant)>,
    cancelled: Arc<Mutex<HashSet<String>>>,
    out: Out,
)
Expand description

Reads the input until it closes: ping and cancellations at once, the rest onto the queue, each with when it came.