Function worker

Source
fn worker(input: &Input, shared: &Shared)