question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide option to render more than one spinner at the same time

See original GitHub issue

Suppose you get multiple long tasks at hand. It should be nice to be able to start more than one spinner before finishing the last one

take this as an example:

 from halo import Hal
 
 a = start_task_a()
 a_spinner = Halo({'text': 'Do A', 'spinner': 'dots'})
 a_spinner.start()
 a_is_spinning = True
 
 b = start_task_b()
 b_spinner = Halo({'text': 'Do B', 'spinner': 'dots'})
 b_spinner.start()
 b_is_spinning = True
 
 while a_is_spinning or b_is_spinning:
     if a.is_finished():
         a_spinner.succeed()
         a_is_spinning = False
     if b.is_finished():
         b_spinner.succeed()
         b_is_spinning = False

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:9
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bertokhourycommented, Oct 18, 2017

@ManrajGrover maybe one simply needs to initialize that if two spinners are spinning. Then, simply print a new line betweem them?

0reactions
JustinTervalacommented, Nov 12, 2020

https://github.com/manrajgrover/halo/pull/155 looks like it would work for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

spinner for each component in react - Stack Overflow
The whole App component with all children will be re-renderer if spinner toggles. It will impact performance a lot., @mohammad answer is more ......
Read more >
Spinner - Android Developers
A view that displays one child at a time and lets the user pick among them. The items in the Spinner come from...
Read more >
To display the spinner until all the data is rendered on the UI ...
You can show the spinner with a promise. async toggleSelectDropInAddPickup(event) { this.isLoading = true; this.
Read more >
Lightning Web Component — Spinner: The Complete Guide ...
Avoid showing multiple loading spinners on a single page/component. Multiple spinners make the app look busy and distracting. 4) Don't use the wrong...
Read more >
Adding spinners and notifications to your React app
You will see a Loading spinner like the following one for a very short period of time. This is the delay time of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found