diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-04-08 17:16:07 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-04-08 20:31:53 +0200 |
commit | 25cdd0f1a0ae0afab5e34b18ea00f1727d7176a9 (patch) | |
tree | f633eeddb57a5f4b67134caa192b8e27e7d4cfb6 /CONTRIBUTING.md | |
parent | 763bcfce41bb3fa9d3e2bc15b635c14446225ecb (diff) |
Fix: Update the progress bar each second
This patch tries to work around a longer-than-1-sec blocking future while
waiting for the channel .recv() call in the LogReceiver.
The issue at hand is: If the channel does not produce log output for longer than
1 second, the progress bar won't be `tick()`ed for that amount of time.
That leads to progress bars that seem to block (no update of the time in the
progress bar output), which might confuse users.
This patch works around that by wrapping the recv() in a timeout future and then
catch the timeout, ping the progress bar and try to `recv()` again.
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions