Function aoc::year2018::day14::reader

source ยท
fn reader(
    rx: Receiver<&[u8]>,
    done: &AtomicBool,
    input: &str,
) -> (String, usize)
Expand description

Receives batches of recipes from the writer thread, then scans them byte by byte searching for the part two pattern. For simplicity the pattern is always assumed to by six digits.