Skip to content

Add example for download with progress tracking#232

Merged
hecrj merged 6 commits into
iced-rs:masterfrom
Songtronix:songtronix/add-download-example
Mar 23, 2020
Merged

Add example for download with progress tracking#232
hecrj merged 6 commits into
iced-rs:masterfrom
Songtronix:songtronix/add-download-example

Conversation

@Songtronix
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread examples/download_progress/README.md Outdated
@Songtronix Songtronix force-pushed the songtronix/add-download-example branch from f97e49f to fff333f Compare March 23, 2020 16:54
@Songtronix
Copy link
Copy Markdown
Contributor Author

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

@hecrj
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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