mirror of https://github.com/helix-editor/helix
syntax: Don't deadlock the build if one of the jobs fails.
parent
b6a22e955b
commit
3cf9a4ceb8
|
@ -126,7 +126,9 @@ fn main() {
|
||||||
tx.send(1).unwrap();
|
tx.send(1).unwrap();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
assert_eq!(rx.iter().take(n_jobs).sum::<usize>(), n_jobs);
|
pool.join();
|
||||||
|
// drop(tx);
|
||||||
|
assert_eq!(rx.try_iter().sum::<usize>(), n_jobs);
|
||||||
|
|
||||||
build_dir("tree-sitter-typescript/tsx", "tsx");
|
build_dir("tree-sitter-typescript/tsx", "tsx");
|
||||||
build_dir("tree-sitter-typescript/typescript", "typescript");
|
build_dir("tree-sitter-typescript/typescript", "typescript");
|
||||||
|
|
Loading…
Reference in New Issue