Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

progress-bar: refresh occasionally even if no updates are received #2241

Merged
merged 2 commits into from Jun 19, 2018

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Jun 18, 2018

(if updates are far apart don't wait indefinitely to redraw/check for quit)

Slightly nicer behavior when updates are somewhat far apart
(during a long linking step, perhaps) ensuring things
don't appear unresponsive.

If we wait the maximum amount for the update,
don't bother waiting another 50ms (for rate-limiting purposes)
and just check if we should quit.

This also ensures we'll notice the request to quit within 1s
if quit is signalled but there is not an udpate.
(I'm not sure if this happens or not)
@edolstra edolstra merged commit 629398d into NixOS:master Jun 19, 2018
@LnL7
Copy link
Member

LnL7 commented Aug 3, 2018

This is causing issues for me, now the repl resets the line I'm typing on every ~1s, 44de71a specifically.

$ nix repl
Welcome to Nix version 2.1pre6338_45bcf541. Type :? for help.

nix-repl>

$ nix repl
Welcome to Nix version 2.1pre6338_45bcf541. Type :? for help.



$ nix repl
Welcome to Nix version 2.1pre6338_45bcf541. Type :? for help.


1+1
$ nix repl
Welcome to Nix version 2.1pre6338_45bcf541. Type :? for help.



$ nix repl
Welcome to Nix version 2.1pre6338_45bcf541. Type :? for help.


          1+1
2

@dtzWill
Copy link
Member Author

dtzWill commented Aug 3, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants