Provide option to render more than one spinner at the same time
See original GitHub issueSuppose 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:
- Created 6 years ago
- Reactions:9
- Comments:8 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ManrajGrover maybe one simply needs to initialize that if two spinners are spinning. Then, simply print a new line betweem them?
https://github.com/manrajgrover/halo/pull/155 looks like it would work for me.