-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Weird Behavior of MultiProgressBar #22
Comments
You can try
|
Ok, I understand this:
Thank you for your suggestions, I'll try to find and fix the problem! |
I'm still trying to get my multi-progress-bar to work with this library.
Simplified Working Example
The sleep() calls in there makes sure that my updates will be scheduled slower than the drawing interval.
Output
Problematic Code
Here is a file with 3 mocked progress readables:
https://github.com/codemonument/deno_downstream/blob/main/test/units/multiProgressCliRenderer.test.ts
When I activate the simpleCallbackTarget(), I get a stream of all the state events based on the aforementioned format:
But when I activate the
multiProgressCliRenderer()
it only outputs two progress bars at first until they finished and then outputs the third one all at once, like this:While running:
When Finished:
Test: Adding a sleep
I also tried to add a
await sleep(0.002)
together with 'interval: 1' in 'multiProgressCliRenderer.ts':Source File: https://github.com/codemonument/deno_downstream/blob/main/lib/streamAdapters/MultiProgressCliRenderer.ts
But this did not work.
Current State
The text was updated successfully, but these errors were encountered: