We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be awesome to have an easy way to plug this in a Enum/Stream/Flow pipeline. Since nowadays we have to do something like:
count = length(list) list |> Stream.with_index(1) |> Stream.map(fn({item, idx}) -> ProgressBar.render(idx, count) item end) |> process_list
What I suggest is something like:
list |> ProgressBar.from_enumerable(progress_bar_opts) |> process_list
Together with progress_bar_opts, I guess it would be a good thing if we ask the count, since then the length can be calculated only once and for all.
progress_bar_opts
count
I would be glad to open a PR, but maybe I will not be able to do it soon.
The text was updated successfully, but these errors were encountered:
Great idea!
Sorry, something went wrong.
fixing issue henrik#19
0630e77
No branches or pull requests
It would be awesome to have an easy way to plug this in a Enum/Stream/Flow pipeline. Since nowadays we have to do something like:
What I suggest is something like:
Together with
progress_bar_opts
, I guess it would be a good thing if we ask thecount
, since then the length can be calculated only once and for all.I would be glad to open a PR, but maybe I will not be able to do it soon.
The text was updated successfully, but these errors were encountered: