mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Shut down worker threads when done
This commit is contained in:
parent
52dc4e9a03
commit
4968cd861e
1 changed files with 6 additions and 1 deletions
|
@ -417,7 +417,12 @@ fn load_deps<'a>(
|
|||
// We're done!
|
||||
debug_assert!(msg_rx.is_empty());
|
||||
|
||||
dbg!("TODO send Shutdown messages to all the worker threads.");
|
||||
// Shut down all the worker threads.
|
||||
for listener in worker_listeners {
|
||||
listener
|
||||
.send(WorkerMsg::Shutdown)
|
||||
.map_err(|_| LoadingProblem::MsgChannelDied)?;
|
||||
}
|
||||
|
||||
state.type_problems.extend(problems);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue