Empty bar loops
See original GitHub issueGreat work.
I am facing some issue on nested loops.
with alive_bar(title="Fetching existing Github issues: ") as bar:
while another_page:
response = SESSION.get(url, params={'per_page': 100})
if response.status_code == 200:
for issue in response.json():
bar()
if 'next' in response.links:
url = response.links['next']['url']
else:
another_page = False
In this sample piece of code, bar updates after 100 items. If I have 250 items, it will update 100 > 200 > 250
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
How to Avoid The 8-Bar Loop Trap - EDMProd
First, get the basic structure down by using blank MIDI clips or markers (name them: intro, verse, chorus, etc.) Then, listen to each...
Read more >Bar Loops - Etsy
Check out our bar loops selection for the very best in unique or custom, handmade pieces from our shops.
Read more >Methods to get out of 1-2 bar loops? : r/ableton - Reddit
I usually actually start with an 8 bar drum loop with a fill for the last bar or half bar, then repeat it...
Read more >Stream Empty Bar music - SoundCloud
Empty Bar is a modern acoustic songs project with two people founded in 2014. We use an acoustic guitar, loop station and percussion...
Read more >why do i keep writing 8 bar loops - oh, i see why.
... empty loops. sure i can make percussive sounds with my synths and ... Take those 8 bar loops, sample them, get an...
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
In this problem of yours, you could create a
deque
, and let one thread fetching the issues, while the main thread receives and processes them. Only here in the main thread you would instantiatealive_bar
, and would not have those “skips”.You could even use a ThreadPool and fetch all pages in parallel, and receive the issues via the same
deque
, it would be much better.Yep. In actual code, there were lines, but I was amazed, how fast all 100 were processed.
On Thu, 14 Jan 2021, 22:16 Rogério Sampaio de Almeida, < notifications@github.com> wrote: