summaryrefslogtreecommitdiff
path: root/src/term.rs
diff options
context:
space:
mode:
authorNahor <nahor.j+github@gmail.com>2024-10-02 14:10:26 -0700
committerNahor <nahor.j+github@gmail.com>2024-10-02 14:10:26 -0700
commit5c17abd1bf52d1222f6574d38a56a29ca0e7696f (patch)
tree986ea146e19818b7c2f53d9a3815da22862c7176 /src/term.rs
parentc52867eb8bf69f67e702b87dd2bf12125aa7ab12 (diff)
Use a channel to update the check_all progress
The previous code was checking the threads in the order they were created. So the progress update would be blocked on an earlier thread even if later thread were already done. Add to that that multiple instances of `cargo build` cannot run in parallel, they will be serialized instead. So if the exercises needs to be recompiled, depending on the order those `cargo build` are run, the first update can be a long time coming. So instead of relying on the thread terminating, use a channel to get notified when an exercise check is done, regardless of the order they finish in.
Diffstat (limited to 'src/term.rs')
0 files changed, 0 insertions, 0 deletions