Duration job(BuildJob job) => job.targets .map((t) => target(job.client, t.type)) .fold(Duration.zero, (a, b) => a + b);