Skip to content
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

Add example for download with progress tracking #232

Merged
merged 6 commits into from
Mar 23, 2020

Conversation

Songtronix
Copy link
Contributor

No description provided.

@Songtronix Songtronix force-pushed the songtronix/add-download-example branch from f97e49f to fff333f Compare March 23, 2020 16:54
@Songtronix
Copy link
Contributor Author

If someone has an idea on how to integrate proper error handling into that I am surely interested!

@hecrj
Copy link
Member

hecrj commented Mar 23, 2020

I am working on an improved version.

hecrj added 3 commits March 23, 2020 20:34
- Use `reqwest` with `Response::chunk` to notify progress.
- Turn example state into an enum
@hecrj
Copy link
Member

hecrj commented Mar 23, 2020

I have updated the example to use reqwest, which implements Response::chunk and allows us to track progress more elegantly.

I also changed the example code a bit and renamed some things. Let me know what you think!

Download progress - Iced

@Songtronix
Copy link
Contributor Author

I love it! 💙

@hecrj hecrj changed the title WIP: Add example for download with progress tracking Add example for download with progress tracking Mar 23, 2020
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! I think we can merge this then.

Thank you for putting this together! 🍻

@hecrj hecrj added the improvement An internal improvement label Mar 23, 2020
@hecrj hecrj added this to the 0.1.0 milestone Mar 23, 2020
@hecrj hecrj merged commit 784b8ee into iced-rs:master Mar 23, 2020
@Songtronix Songtronix deleted the songtronix/add-download-example branch March 24, 2020 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement An internal improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants